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

Method testGetClass

src/test/resources/pta/reflection/GetMember.java:26–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 }
25
26 static void testGetClass() throws Exception {
27 U u = new U();
28 Class<? extends U> klass = u.getClass();
29 Method foo1 = klass.getDeclaredMethod("foo", int.class);
30 Method foo2 = klass.getMethod("foo", U.class);
31 use(foo1, foo2);
32 }
33
34 static void use(Object... objs) {
35 }

Callers 1

mainMethod · 0.95

Calls 4

useMethod · 0.95
getDeclaredMethodMethod · 0.80
getClassMethod · 0.65
getMethodMethod · 0.65

Tested by

no test coverage detected