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,11 +119,11 @@ public class StringValidator<DTO> extends BasePropertyValidator<DTO, String, Str
return false; return false;
} }
for (int i = 0; i < cs.length(); i++) { for (int i = 0; i < cs.length(); i++) {
if (Character.isWhitespace(cs.charAt(i))) { if (!Character.isWhitespace(cs.charAt(i))) {
return false; return true;
} }
} }
return true; return false;
} }
public StringValidator<DTO> notBlank() { public StringValidator<DTO> notBlank() {