Annotation Interface 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
     
     
  • Element Details

    • value

      String value
      Returns:
      unknown
      Default:
      ""
    • message

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