Package org.eclipse.jdt.annotation


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
    Description
    Utility functions intended for use with the null annotations defined in this package.
    Locations that can be affected by a NonNullByDefault annotation.
    Qualifier for a reference type in a TYPE_USE position: The type that has this annotation is intended to not include the value null.
    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.
    This annotation allows to specify absence of responsibility for certain objects as they are passed from one method to another.
    Qualifier for a reference type in a TYPE_USE position: The type that has this annotation explicitly includes the value null.
    This annotation allows to specify responsibility for certain objects as they are passed from one method to another.