mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
@@ -857,7 +857,7 @@ public class DataBinder implements PropertyEditorRegistry, TypeConverter {
|
||||
Assert.state(target != null, "No target to validate");
|
||||
BindingResult bindingResult = getBindingResult();
|
||||
// Call each validator with the same binding result
|
||||
for (Validator validator : this.validators) {
|
||||
for (Validator validator : getValidators()) {
|
||||
validator.validate(target, bindingResult);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user