@@ -104,8 +104,7 @@ private Class<?> extractDeclaringClass(RegisteredBean registeredBean, Instantiat
104
104
/**
105
105
* Extract the target class of a public {@link FactoryBean} based on its
106
106
* constructor. If the implementation does not resolve the target class
107
- * because it itself uses a generic, attempt to extract it from the
108
- * bean type.
107
+ * because it itself uses a generic, attempt to extract it from the bean type.
109
108
* @param factoryBeanType the factory bean type
110
109
* @param beanType the bean type
111
110
* @return the target class to use
@@ -172,9 +171,11 @@ public CodeBlock generateSetBeanDefinitionPropertiesCode(
172
171
173
172
Loader loader = AotServices .factories (this .registeredBean .getBeanFactory ().getBeanClassLoader ());
174
173
List <Delegate > additionalDelegates = loader .load (Delegate .class ).asList ();
175
- return new BeanDefinitionPropertiesCodeGenerator (generationContext .getRuntimeHints (),
176
- attributeFilter , beanRegistrationCode .getMethods (),
177
- additionalDelegates , (name , value ) -> generateValueCode (generationContext , name , value ))
174
+
175
+ return new BeanDefinitionPropertiesCodeGenerator (
176
+ generationContext .getRuntimeHints (), attributeFilter ,
177
+ beanRegistrationCode .getMethods (), additionalDelegates ,
178
+ (name , value ) -> generateValueCode (generationContext , name , value ))
178
179
.generateCode (beanDefinition );
179
180
}
180
181
@@ -234,8 +235,8 @@ public CodeBlock generateInstanceSupplierCode(
234
235
throw new IllegalStateException ("Default code generation is not supported for bean definitions " +
235
236
"declaring an instance supplier callback: " + this .registeredBean .getMergedBeanDefinition ());
236
237
}
237
- return new InstanceSupplierCodeGenerator (generationContext , beanRegistrationCode . getClassName (),
238
- beanRegistrationCode .getMethods (), allowDirectSupplierShortcut )
238
+ return new InstanceSupplierCodeGenerator (generationContext ,
239
+ beanRegistrationCode .getClassName (), beanRegistrationCode . getMethods (), allowDirectSupplierShortcut )
239
240
.generateCode (this .registeredBean , this .instantiationDescriptor .get ());
240
241
}
241
242
0 commit comments