org.jetbrains.annotations
Annotation Type NotNull


@Documented
@Retention(value=CLASS)
@Target(value={METHOD,FIELD,PARAMETER,LOCAL_VARIABLE})
public @interface NotNull

An element annotated with NutNull claims null value is forbidden to return (for methods), pass to (parameters) and hold (local variables and fields). Apart from documentation purposes this annotation is intended to be used by static analysis tools to validate against probable runtime errors and element contract violations.

Author:
max

Optional Element Summary
 java.lang.String value
           
 

value

public abstract java.lang.String value
Default:
""