File tree Expand file tree Collapse file tree
test-app/runtime/src/main/java/com/tns Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import java .util .HashMap ;
1212import java .util .List ;
1313import java .util .Map ;
14+ import java .util .concurrent .ConcurrentHashMap ;
1415
1516class MethodResolver {
1617 private static Map <String , String > primitiveTypesSignature = new HashMap <String , String >();
@@ -98,11 +99,10 @@ public static String getTypeSignature(Class<?> type) {
9899 return array + signature ;
99100 }
100101
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 <>();
103103
104104 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 >> ();
106106 int argLength = (args != null ) ? args .length : 0 ;
107107
108108 Class <?> c = clazz ;
You can’t perform that action at this time.
0 commit comments