main
ZhouXY108 2024-09-07 18:35:49 +08:00
parent 315ff1950f
commit 25ec5577cc
1 changed files with 3 additions and 3 deletions

View File

@ -119,12 +119,12 @@ public class StringValidator<DTO> extends BasePropertyValidator<DTO, String, Str
return false;
}
for (int i = 0; i < cs.length(); i++) {
if (Character.isWhitespace(cs.charAt(i))) {
return false;
}
}
if (!Character.isWhitespace(cs.charAt(i))) {
return true;
}
}
return false;
}
public StringValidator<DTO> notBlank() {
return notBlank("This String argument must have text; it must not be null, empty, or blank");