MCPcopy Create free account
hub / github.com/LFYSec/MScan / invokeOneArg

Method invokeOneArg

src/test/resources/pta/reflection/GetMethods.java:10–18  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

8 }
9
10 static void invokeOneArg(String name) throws Exception {
11 Method[] methods = J.class.getMethods();
12 for (Method m : methods) {
13 if (m.getName().equals(name)) {
14 J j = new J();
15 m.invoke(j, j); // <I: void bar(I)>, <J: void foo(J)>
16 }
17 }
18 }
19}
20
21class I {

Callers 1

mainMethod · 0.95

Calls 4

getNameMethod · 0.65
getMethodsMethod · 0.45
equalsMethod · 0.45
invokeMethod · 0.45

Tested by

no test coverage detected