@Target(value={METHOD,PARAMETER,TYPE_PARAMETER,FIELD})
@Retention(value=RUNTIME)
@Documented
public @interface Nullable
null
under some circumstances.
Should be used at parameters, return values and optionally field level in association
with NonNullApi
package-level annotations. Methods overrides should repeat parent
parameter or return value @Nullable
annotations unless they behave differently.
Leverages JSR-305 meta-annotations to indicate its semantics to common tools with JSR-305 support.
NonNullApi
,
javax.annotation.Nullable