Annotation Type NotNull
-
@Documented @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(CLASS) public @interface NotNull
The annotated element must not be null. Accepts any type.This is useful to tell linting and testing tools that a particular value will never be null. It's not meant to be used on public interfaces as something that customers should rely on.