Update MaxSizeConstraintValidator.java
This commit is contained in:
parent
d100adc9c5
commit
b5d49958eb
|
@ -11,11 +11,7 @@ public class MaxSizeConstraintValidator implements ConstraintValidator<MaxSizeCo
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isValid(List<Movie> values, ConstraintValidatorContext context) {
|
public boolean isValid(List<Movie> values, ConstraintValidatorContext context) {
|
||||||
boolean isValid = true;
|
return value.size()<=4
|
||||||
if (values.size() > 4) {
|
|
||||||
isValid = false;
|
|
||||||
}
|
|
||||||
return isValid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue