Class DeepCloner.UnsafeFieldWriter

java.lang.Object
org.powermock.classloading.DeepCloner.UnsafeFieldWriter
Enclosing class:
DeepCloner

private static class DeepCloner.UnsafeFieldWriter extends Object
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 Details

    • unsafe

      private static final sun.misc.Unsafe unsafe
    • exception

      private static final Exception exception
  • Constructor Details

    • UnsafeFieldWriter

      private UnsafeFieldWriter()
  • Method Details