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

View File

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