Package org.eclipse.jdt.annotation
This package contains annotations that can trigger special behavior
when annotated types are compiled by the Eclipse Compiler for Java.
Currently, the package contains annotations that specify nullness contracts for annotated elements.
Additionally, class Checks
provides
utility methods for performing checked type conversions.
-
Class Summary Class Description Checks Utility functions intended for use with the null annotations defined in this package. -
Enum Summary Enum Description DefaultLocation Locations that can be affected by aNonNullByDefault
annotation. -
Annotation Types Summary Annotation Type Description NonNull Qualifier for a reference type in aTYPE_USE
position: The type that has this annotation is intended to not include the valuenull
.NonNullByDefault Applying this annotation to a declaration has the effect that type references, which are contained in the declaration, and for which a null annotation is otherwise lacking, should be considered as@NonNull
.Nullable Qualifier for a reference type in aTYPE_USE
position: The type that has this annotation explicitly includes the valuenull
.