Remove method FieldAccessor.get

… which fails in JDK 9.
This commit is contained in:
Dana Dahlstrom
2017-01-11 17:13:03 -08:00
parent f3e4ee55ba
commit da33f0123f
@@ -40,8 +40,4 @@ public class FieldAccessor<FIELD_TYPE> {
private static Object getFieldValue(Class c, String fieldName, Object o) {
return ReflectionUtil.getField(c, o, null, fieldName);
}
public static <FIELD_TYPE> FIELD_TYPE get(Class hostClass, Object host, String fieldName) {
return (FIELD_TYPE)getFieldValue(hostClass, fieldName, host);
}
}