@@ -227,9 +227,8 @@ public InstantiationDescriptor resolveInstantiationDescriptor() {
227227 if (executable instanceof Method method && !Modifier .isStatic (method .getModifiers ())) {
228228 String factoryBeanName = getMergedBeanDefinition ().getFactoryBeanName ();
229229 if (factoryBeanName != null && this .beanFactory .containsBean (factoryBeanName )) {
230- Class <?> target = this .beanFactory .getMergedBeanDefinition (factoryBeanName )
231- .getResolvableType ().toClass ();
232- return new InstantiationDescriptor (executable , target );
230+ return new InstantiationDescriptor (executable ,
231+ this .beanFactory .getMergedBeanDefinition (factoryBeanName ).getResolvableType ().toClass ());
233232 }
234233 }
235234 return new InstantiationDescriptor (executable , executable .getDeclaringClass ());
@@ -260,8 +259,9 @@ public String toString() {
260259 .append ("mergedBeanDefinition" , getMergedBeanDefinition ()).toString ();
261260 }
262261
262+
263263 /**
264- * Describe how a bean should be instantiated. While the {@code targetClass}
264+ * Descriptor for how a bean should be instantiated. While the {@code targetClass}
265265 * is usually the declaring class of the {@code executable}, there are cases
266266 * where retaining the actual concrete type is necessary.
267267 * @param executable the {@link Executable} to invoke
@@ -275,6 +275,7 @@ public InstantiationDescriptor(Executable executable) {
275275 }
276276 }
277277
278+
278279 /**
279280 * Resolver used to obtain inner-bean details.
280281 */
0 commit comments