Package javax.annotation


package javax.annotation
  • Class
    Description
    The annotated element might be null, and uses of the element should check for null.
    Used to annotate a value that may be either negative or nonnegative, and indicates that uses of it should check for negative values before using it in a way that requires the value to be nonnegative, and check for it being nonnegative before using it in a way that requires it to be negative.
    This annotation is used to denote a method whose return value should always be checked after invoking the method.
     
    This annotation is used to denote String values that should always match given pattern.
     
    This annotation is used to annotate a value that should only contain nonnegative values.
     
    The annotated element must not be null.
     
    The annotated element could be null under some circumstances.
    When this annotation is applied to a method, it indicates that if this method is overridden in a subclass, the overriding method should invoke this method (through method invocation on super).
    This annotation can be applied to a package, class or method to indicate that the method parameters in that element are nonnull by default unless there is: An explicit nullness annotation The method overrides a method in a superclass (in which case the annotation of the corresponding parameter in the superclass applies) There is a default parameter annotation (like ParametersAreNullableByDefault) applied to a more tightly nested element.
    This annotation can be applied to a package, class or method to indicate that the method parameters in that element are nullable by default unless there is: An explicit nullness annotation The method overrides a method in a superclass (in which case the annotation of the corresponding parameter in the superclass applies) There is a default parameter annotation applied to a more tightly nested element.
     
    This qualifier is used to denote String values that should be a Regular expression.
     
    Used to annotate a value of unknown sign.
    This annotation a value that is of a particular syntax, such as Java syntax or regular expression syntax.
    This annotation is used to denote String values that are tainted, i.e.
    This annotation is used to denote String values that are untainted, i.e.
    Used to annotate a method parameter to indicate that this method will close the resource.
    Used to annotate a constructor/factory parameter to indicate that returned object (X) will close the resource when X is closed.
    Used to annotate a method parameter to indicate that this method will not close the resource.