Change private static final field using Java reflection
I followed the instructions in the link above to change a private static final field using java reflection. I hav
This works for non-static fields.
Field field = data.getClass().getDeclaredField("type"); field.setAccessible(true); field.set(data, null);