@Documented @Retention(value=RUNTIME) @Target(value={TYPE_USE,TYPE_PARAMETER}) @SubtypeOf(value={}) @QualifierForLiterals(value=NULL) @DefaultFor(types=java.lang.Void.class) @DefaultInUncheckedCodeFor(value={RETURN,UPPER_BOUND}) 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
.
This annotation is associated with the NullnessChecker
.
NonNull
,
MonotonicNonNull
,
NullnessChecker