Made setFailsafeFieldValue public for Rob

This commit is contained in:
LexManos 2012-06-18 20:15:33 -07:00
parent 8f861c24d8
commit 86d7b7b7b8

View file

@ -269,7 +269,7 @@ public class EnumHelper
return enumClass.cast(newInstance.invoke(getConstructorAccessor(decompiled, enumClass, additionalTypes), new Object[] {parms}));
}
private static void setFailsafeFieldValue(Field field, Object target, Object value) throws Exception
public static void setFailsafeFieldValue(Field field, Object target, Object value) throws Exception
{
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");