Commit 2c0ec1b4 authored by Phillip Webb's avatar Phillip Webb

Polish

parent acfb07bd
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment