...
@NonNull
is a compiler and tooling suggestion whereas @NotNull
is a validation directive for validated classes.
If you want to validate a property is not null make sure it also has the NotNull @NotNull
variant.
I would say rule of thumb, is that you either want both or just NonNull
.