Package com.helger.commons.annotation
Annotation Type Nonempty
-
@Retention(CLASS) @Target({FIELD,PARAMETER,LOCAL_VARIABLE,METHOD}) @Documented public @interface Nonempty
A specialization of theNonnullannotation that is to be used for String and collection parameters as well as return values only. It indicates that a string may neither benullnor empty ("") or that a collection may neither benullnor empty).
This means that the usage of this annotation implies the usage of theNonnullannotation but because of better FindBugs handling, theNonnullannotation must be present as well.- Author:
- Philip Helger
-
-
Element Detail
-
value
String value
- Default:
- ""
-
-