Top Description Methods
org.eclipse.jdt.annotation

public @Interface Nullable

extends Annotation
Annotations
@Documented
@Retention:CLASS
@Target:TYPE_USE
Static Imports
java.lang.annotation.ElementType.TYPE_USE

Qualifier for a reference type in a TYPE_USE position: The type that has this annotation explicitly includes the value null.

If annotation based null analysis is enabled using this annotation has two consequences:

  1. Binding a null value to an entity (field, local variable, method parameter or method return value) of this type is legal.
  2. Dereferencing an expression of this type is unsafe, i.e., a NullPointerException can occur at runtime.

Note

Since org.eclipse.jdt.annotation 2.0.0, the @Target is {TYPE_USE}. For the old API, see @Nullable in 1.1.0.

Since
1.0

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString