@Documented @Retention(value=RUNTIME) @Target(value={PACKAGE,TYPE,METHOD,CONSTRUCTOR}) public @interface NonNullByDefault
null
in
the annotated package or type.
This rule can be overridden on each element by using Nullable
annotation.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
value
When annotating an element with
@NonNullByDefault(false) , the
default null annotation is not applied. |
public abstract boolean value
@NonNullByDefault(false)
, the
default null annotation is not applied. In this case, the appropriate
annotation must be specified to each sub-element (@Nullable
or
@NotNull
or none).