pull/1/head
ZhouXY108 2023-04-04 00:07:32 +08:00
parent e9918b274a
commit db909ff93f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public class CollectionValidator<DTO, T> extends PropertyValidator<DTO, Collecti
Function<Collection<T>, E> exceptionCreator) {
withRule(value -> {
if (value == null) {
return false;
return true;
}
return ((Collection<?>) value).isEmpty();
}, exceptionCreator);