Merge pull request #10087 from lc275/patch-1
Update MaxSizeConstraintValidator.java
This commit is contained in:
commit
29dd214247
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue