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