Annotation Type Nonnull


  • @Documented
    @Target(TYPE_USE)
    @Retention(SOURCE)
    public @interface Nonnull
    Denotes that a type (parameter, field, method return value, ...) can never be null. This is a marker annotation and it has no specific attributes.
    • Optional Element Summary

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

      • value

        java.lang.String value
        Returns:
        unknown
        Default:
        ""
      • message

        java.lang.String message
        Returns:
        the message if this field is null.
        Default:
        "must not be null."