When classes are annotated with @NonNullByDefault this annotation does not apply to generic argument and parameter types.
With these changes the NullAnnotationsCheck allows for @NonNull annotations on generic argument and parameter types.
This fixes for instance 48 NullAnnotationsCheck false positives in openhab-core and makes it easier to find and fix real @NonNull misusages.
When classes are annotated with
@NonNullByDefault
this annotation does not apply to generic argument and parameter types. With these changes theNullAnnotationsCheck
allows for@NonNull
annotations on generic argument and parameter types.This fixes for instance 48
NullAnnotationsCheck
false positives in openhab-core and makes it easier to find and fix real@NonNull
misusages.