checkers.nullness.quals
Annotation Type Nullable


@Documented
@Retention(value=RUNTIME)
@TypeQualifier
@SubtypeOf(value={})
public @interface Nullable

Indicates that a variable may have a null value.

If a method parameter is annotated with @Nullable, then passing null as an argument should not cause the method to throw an exception, including a NullPointerException. A similar argument applies to public fields that are annotated with @Nullable.

This annotation is associated with the NullnessChecker.

See Also:
NonNull, NullnessChecker
checker.framework.manual
#nullness-checker Nullness Checker