pull/6921/head
Phillip Webb 8 years ago
parent 82ae6e4049
commit 0ef845b96e

@ -61,7 +61,7 @@ public class JsonTestersAutoConfiguration {
@Bean @Bean
@Scope("prototype") @Scope("prototype")
public FactoryBean<BasicJsonTester> BasicJsonTesterFactoryBean() { public FactoryBean<BasicJsonTester> basicJsonTesterFactoryBean() {
return new JsonTesterFactoryBean<BasicJsonTester, Void>(BasicJsonTester.class, return new JsonTesterFactoryBean<BasicJsonTester, Void>(BasicJsonTester.class,
null); null);
} }
@ -155,14 +155,14 @@ public class JsonTestersAutoConfiguration {
@Override @Override
public void doWith(Field field) public void doWith(Field field)
throws IllegalArgumentException, IllegalAccessException { throws IllegalArgumentException, IllegalAccessException {
processFiled(bean, field); processField(bean, field);
} }
}); });
return bean; return bean;
} }
private void processFiled(Object bean, Field field) { private void processField(Object bean, Field field) {
if (AbstractJsonMarshalTester.class.isAssignableFrom(field.getType()) if (AbstractJsonMarshalTester.class.isAssignableFrom(field.getType())
|| BasicJsonTester.class.isAssignableFrom(field.getType())) { || BasicJsonTester.class.isAssignableFrom(field.getType())) {
ResolvableType type = ResolvableType.forField(field).getGeneric(); ResolvableType type = ResolvableType.forField(field).getGeneric();

Loading…
Cancel
Save