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

Method set

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

Source from the content-addressed store, hash-verified

73 }
74
75 static void set() throws Exception {
76 // set static field
77 Field stat = U.class.getField("stat");
78 stat.set(null, new Object());
79
80 // set instance field
81 Field inst = U.class.getField("inst");
82 inst.set(new U(), new V());
83 }
84
85 static void use(Object o) {
86 }

Callers 1

mainMethod · 0.95

Calls 2

getFieldMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected