Force types to be explicit about the null-status (nullable or non-null) of all enclosed constructors, fields and methods
Motiviation
In Java, the type system doesn't distinguish between nullable and non-null references,
so It's recommended to use null-status annotations @NonNull or @Nullable annotations.
this library forces any type annotated with @ExplicitNullStatus to use the null-status annotations or it will fail the build
you can suppress the null-status-check using @Ignore on the ignore element or @IgnoreConstructors, @IgnoreFields, and @IgnoreMethods on a type to ignore multiple elements.
@ExplicitNullStatus// => @NonNull @Nullable are required publicclassUser {
@IgnoreprivateStringemail; // => will be ignored@NullableprivateStringavatar;
...
}
@ExplicitNullStatus// => @NonNull @Nullable are required @IgnoreFieldspublicclassUser {
privateStringemail; // => will be ignored@NullableprivateStringavatar;
...
}