File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -898,7 +898,7 @@ public int getAssignabilityWeight(Class<?>[] paramTypes) {
898
898
return Integer .MAX_VALUE - 1024 ;
899
899
}
900
900
901
- public void storeCache (RootBeanDefinition mbd , Object constructorOrFactoryMethod ) {
901
+ public void storeCache (RootBeanDefinition mbd , Executable constructorOrFactoryMethod ) {
902
902
synchronized (mbd .constructorArgumentLock ) {
903
903
mbd .resolvedConstructorOrFactoryMethod = constructorOrFactoryMethod ;
904
904
mbd .constructorArgumentsResolved = true ;
Original file line number Diff line number Diff line change 16
16
17
17
package org .springframework .beans .factory .support ;
18
18
19
+ import java .lang .reflect .Executable ;
19
20
import java .lang .reflect .Member ;
20
21
import java .lang .reflect .Method ;
21
22
import java .util .HashSet ;
@@ -59,7 +60,7 @@ public class RootBeanDefinition extends AbstractBeanDefinition {
59
60
final Object constructorArgumentLock = new Object ();
60
61
61
62
/** Package-visible field for caching the resolved constructor or factory method */
62
- Object resolvedConstructorOrFactoryMethod ;
63
+ Executable resolvedConstructorOrFactoryMethod ;
63
64
64
65
/** Package-visible field for caching the return type of a generically typed factory method */
65
66
volatile Class <?> resolvedFactoryMethodReturnType ;
@@ -250,7 +251,7 @@ public boolean isFactoryMethod(Method candidate) {
250
251
*/
251
252
public Method getResolvedFactoryMethod () {
252
253
synchronized (this .constructorArgumentLock ) {
253
- Object candidate = this .resolvedConstructorOrFactoryMethod ;
254
+ Executable candidate = this .resolvedConstructorOrFactoryMethod ;
254
255
return (candidate instanceof Method ? (Method ) candidate : null );
255
256
}
256
257
}
You can’t perform that action at this time.
0 commit comments