mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
Polish GenericTypeResolver
- renamed resolveParameterizedReturnType() to resolveReturnTypeForGenericMethod() - fleshed out Javadoc for resolveReturnType() and resolveReturnTypeForGenericMethod() regarding declaration of formal type variables - improved wording in log statements and naming of local variables within resolveReturnTypeForGenericMethod() Issue: SPR-9493
This commit is contained in:
+1
-1
@@ -646,7 +646,7 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
|
||||
&& factoryMethod.getName().equals(mbd.getFactoryMethodName())
|
||||
&& factoryMethod.getParameterTypes().length >= minNrOfArgs) {
|
||||
|
||||
Class<?> returnType = GenericTypeResolver.resolveParameterizedReturnType(factoryMethod, args);
|
||||
Class<?> returnType = GenericTypeResolver.resolveReturnTypeForGenericMethod(factoryMethod, args);
|
||||
if (returnType != null) {
|
||||
returnTypes.add(returnType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user