MCPcopy Create free account
hub / github.com/antlr/codebuff / getFieldSetter

Method getFieldSetter

output/java_guava/1.4.18/Serialization.java:195–202  ·  view source on GitHub ↗
(final Class<T> clazz, String fieldName)

Source from the content-addressed store, hash-verified

193 // Secret sauce for setting final fields; don't make it public.
194
195 static <T> FieldSetter<T> getFieldSetter(final Class<T> clazz, String fieldName) {
196 try {
197 Field field = clazz.getDeclaredField(fieldName);
198 return new FieldSetter<T>(field);
199 } catch (NoSuchFieldException e) {
200 throw new AssertionError(e); // programmer error
201 }
202 }
203
204 // Secret sauce for setting final fields; don't make it public.
205

Callers 3

FieldSettersHolderClass · 0.95
FieldSettersHolderClass · 0.95
readObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected