MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / set

Method set

src/main/java/com/volmit/adapt/util/V.java:118–127  ·  view source on GitHub ↗
(String field, Object value)

Source from the content-addressed store, hash-verified

116 }
117
118 public void set(String field, Object value) {
119 try {
120 // https://github.com/VolmitSoftware/Mortar/issues/5
121 (local ? Violator.getDeclaredField(o.getClass(), field) : Violator.getField(o.getClass(), field)).set(o, value);
122 } catch (Throwable e) {
123 if (!suppress) {
124 e.printStackTrace();
125 }
126 }
127 }
128}

Callers

nothing calls this directly

Calls 3

getDeclaredFieldMethod · 0.95
getFieldMethod · 0.95
setMethod · 0.65

Tested by

no test coverage detected