Annotation Type Nonempty


A specialization of the Nonnull annotation that is to be used for String and collection parameters as well as return values only. It indicates that a string may neither be null nor empty ( "") or that a collection may neither be null nor empty).
This means that the usage of this annotation implies the usage of the Nonnull annotation but because of better FindBugs handling, the Nonnull annotation must be present as well.
Author:
Philip Helger
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Default:
      ""