Update MaxSizeConstraintValidator.java
This commit is contained in:
parent
d100adc9c5
commit
b5d49958eb
|
@ -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 value.size()<=4
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue