This commit is contained in:
zhouxy108 2023-04-03 23:56:32 +08:00
parent 5dc37c081e
commit 17f7a1f4ac

@ -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);