@Documented @Retention(value=RUNTIME) @Target(value={TYPE_USE,TYPE_PARAMETER}) @SubtypeOf(value={}) @QualifierForLiterals(value=NULL) @DefaultFor(types=java.lang.Void.class) public @interface Nullable
Nullable
is a type annotation that indicates that the value is not known to be non-null
(see NonNull
). Only if an expression has a Nullable
type may it be assigned
null
.
A programmer might write the type Nullable
on an expression even if it never evaluates
to null
.
NonNull
,
MonotonicNonNull
,
NullnessChecker