Annotation Type NotNull
-
@Retention(SOURCE) @Target({FIELD,METHOD,PARAMETER}) public @interface NotNullSpecifies that property is not nullYou can also use any another NotNull or NonNull annotation (from any library or your own), they are equal to using this