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 © 2007-2022 Red Hat, Inc. All Rights Reserved