Merge pull request #10087 from lc275/patch-1

Update MaxSizeConstraintValidator.java
This commit is contained in:
Loredana Crusoveanu 2020-10-16 19:20:22 +03:00 committed by GitHub
commit 29dd214247
1 changed files with 1 additions and 5 deletions

View File

@ -11,11 +11,7 @@ public class MaxSizeConstraintValidator implements ConstraintValidator<MaxSizeCo
@Override
public boolean isValid(List<Movie> values, ConstraintValidatorContext context) {
boolean isValid = true;
if (values.size() > 4) {
isValid = false;
}
return isValid;
return values.size() <= 4;
}
}