File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test-app/runtime/src/main/java/com/tns Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
import java .util .HashMap ;
12
12
import java .util .List ;
13
13
import java .util .Map ;
14
+ import java .util .concurrent .ConcurrentHashMap ;
14
15
15
16
class MethodResolver {
16
17
private static Map <String , String > primitiveTypesSignature = new HashMap <String , String >();
@@ -98,11 +99,10 @@ public static String getTypeSignature(Class<?> type) {
98
99
return array + signature ;
99
100
}
100
101
101
- static HashMap <Class <?>, MethodFinder > methodOverloadsForClass = new HashMap <Class <?>, MethodFinder >();
102
- static ArrayList <Tuple <Method , Integer >> candidates = new ArrayList <Tuple <Method , Integer >>();
102
+ static ConcurrentHashMap <Class <?>, MethodFinder > methodOverloadsForClass = new ConcurrentHashMap <>();
103
103
104
104
static String resolveMethodOverload (Class <?> clazz , String methodName , Object [] args ) throws ClassNotFoundException {
105
- candidates . clear ();
105
+ ArrayList < Tuple < Method , Integer >> candidates = new ArrayList < Tuple < Method , Integer >> ();
106
106
int argLength = (args != null ) ? args .length : 0 ;
107
107
108
108
Class <?> c = clazz ;
You can’t perform that action at this time.
0 commit comments