fix bug.
parent
315ff1950f
commit
25ec5577cc
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue