Polish
This commit is contained in:
parent
acfb07bdd6
commit
2c0ec1b428
|
|
@ -322,15 +322,15 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
|
|||
}
|
||||
|
||||
private Validator determineValidator(Object bean) {
|
||||
boolean globalValidatorSupportBean = (this.validator != null
|
||||
&& this.validator.supports(bean.getClass()));
|
||||
boolean globalValidatorSupportBean = (this.validator != null && this.validator
|
||||
.supports(bean.getClass()));
|
||||
if (ClassUtils.isAssignable(Validator.class, bean.getClass())) {
|
||||
if (!globalValidatorSupportBean) {
|
||||
return (Validator) bean;
|
||||
}
|
||||
return new ChainingValidator(this.validator, (Validator) bean);
|
||||
}
|
||||
return globalValidatorSupportBean ? this.validator : null;
|
||||
return (globalValidatorSupportBean ? this.validator : null);
|
||||
}
|
||||
|
||||
private PropertySources loadPropertySources(String[] locations,
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
|
|||
private String foo;
|
||||
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
return this.foo;
|
||||
}
|
||||
|
||||
public void setFoo(String foo) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue