Made setFailsafeFieldValue public for Rob
This commit is contained in:
parent
8f861c24d8
commit
86d7b7b7b8
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue