Annotation Interface NotNull


@Documented @Target(PARAMETER) public @interface NotNull
Indicates that a method parameter must not be null.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    An optional description or reason for the NotNull annotation.
  • Element Details

    • value

      String value
      An optional description or reason for the NotNull annotation.
      Returns:
      A string providing additional context (default is an empty string).
      Default:
      ""