NotBlank
constraint instead@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @ReportAsSingleViolation @NotNull @Repeatable(value=NotBlank.List.class) @Deprecated public @interface NotBlank
null
or empty.
The difference to NotEmpty
is that trailing whitespaces are getting ignored.Copyright © 2019 JBoss by Red Hat. All rights reserved.