Package org.powermock.classloading
Class DeepCloner.UnsafeFieldWriter
java.lang.Object
org.powermock.classloading.DeepCloner.UnsafeFieldWriter
- Enclosing class:
DeepCloner
Most of this code has been copied from the Sun14ReflectionProvider in the
XStream project. Some changes has been made, namely if the field is
static final then the
Unsafe.staticFieldOffset(Field)
method is
used instead of Unsafe.objectFieldOffset(Field)
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
unsafe
private static final sun.misc.Unsafe unsafe -
exception
-
-
Constructor Details
-
UnsafeFieldWriter
private UnsafeFieldWriter()
-
-
Method Details
-
write
-