Annotation Type NotNull


  • @Retention(SOURCE)
    @Target({FIELD,METHOD,PARAMETER})
    public @interface NotNull
    Specifies that property is not null

    You can also use any another NotNull or NonNull annotation (from any library or your own), they are equal to using this