See: Description
Annotation Type | Description |
---|---|
NonNull |
Qualifier for a type in a method signature or a local variable declaration:
The entity (return value, parameter, field, local variable) whose type has this
annotation can never have the value
null at runtime. |
NonNullByDefault |
This annotation can be applied to a package, type, method or constructor in order to
define that contained entities for which a null annotation is otherwise lacking
should be considered as
@NonNull . |
Nullable |
Qualifier for a type in a method signature or a local variable declaration:
The entity (return value, parameter, field, local variable) whose type has this
annotation is allowed to have the value
null at runtime. |
Currently, the package contains annotations that specify nullness contracts for annotated elements.