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

Method get

src/test/resources/pta/reflection/ReflectiveAction.java:63–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 static void get() throws Exception {
64 // get static field
65 Field stat = U.class.getField("stat");
66 Object o1 = stat.get(null);
67 use(o1);
68
69 // get instance field
70 Field inst = U.class.getField("inst");
71 Object o2 = inst.get(new U());
72 use(o2);
73 }
74
75 static void set() throws Exception {
76 // set static field

Callers 1

mainMethod · 0.95

Calls 3

useMethod · 0.95
getFieldMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected