Annotation Type NotNull


  • @Documented
    @Retention(CLASS)
    @Target({METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,TYPE_USE})
    public @interface NotNull
    An annotation which is used for indicating that something can not be null.
    This is very useful for static code analysis to prevent bugs.
    Since:
    4.0.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value
        Default:
        ""