@NotNull and @Nullable, contradicting java annotations
问题 It happened to me that I accidentally did this: @javax.annotation.Nullable @javax.validation.constraints.NotNull The compiler didn't complain and everything seemed to work well. Now I am wondering what is internally happening when two or more annotations contradict each other. Furthermore, does the order matter? Is this @Nullable @NotNull the same than this? @NotNull @Nullable How is this working for annotations in general? Who wins? EDIT: I am looking for a general answer, not necessarily