I just updated my project to use Spring Boot 2.0.3
with Spring Framework 5.0.7
.
And now I see that some parameters in methods of MessageSource
are annotated with Spring's shiny new @Nullable
annotation. But due to this annotation, IDEA 14 says that the appropriate parameters cannot be null
(SURPRISE!).
As I understand that's due to the fact that @Nullable
is annotated with @Nonnull
:
@Nonnull(
when = When.MAYBE
)
What was the reason to mark annotation with a logically opposite one?