Annotation Type NotBlank
-
@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @ReportAsSingleViolation @NotNull @Repeatable(List.class) @Deprecated public @interface NotBlank
Deprecated.use the standardNotBlankconstraint insteadValidate that the annotated string is notnullor empty. The difference toNotEmptyis that trailing whitespaces are getting ignored.- Author:
- Hardy Ferentschik