pull/1/head
ZhouXY108 2023-04-03 23:56:32 +08:00
parent 5dc37c081e
commit 17f7a1f4ac
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ public class StringValidator<DTO> extends PropertyValidator<DTO, String, StringV
Function<String, E> exceptionCreator) {
withRule(value -> {
if (value == null) {
return false;
return true;
}
return value.isEmpty();
}, exceptionCreator);