src/java.base/share/classes/jdk/internal/misc/Unsafe.java

@@ -31,11 +31,10 @@
import sun.nio.ch.DirectBuffer;
import java.lang.reflect.Field;
import java.security.ProtectionDomain;
-import static jdk.internal.misc.UnsafeConstants.*;
/**
* A collection of methods for performing low-level, unsafe operations.
* Although the class and all methods are public, use of this class is
* limited because only trusted code can obtain instances of it.

@@ -3352,18 +3352,18 @@
/**
* @return Returns true if the native byte ordering of this
* platform is big-endian, false if it is little-endian.
*/
- public final boolean isBigEndian() { return BIG_ENDIAN; }+ public final boolean isBigEndian() { return BE; }
/**
* @return Returns true if this platform is capable of performing
* accesses at addresses which are not aligned for the type of the
* primitive type being accessed, false otherwise.
*/
- public final boolean unalignedAccess() { return UNALIGNED_ACCESS; }+ public final boolean unalignedAccess() { return unalignedAccess; }
/**
* Fetches a value at some byte offset into a given Java object.
* More specifically, fetches a value within the given object
* <code>o</code> at the given offset, or (if <code>o</code> is