HBASE-25227 [branch-1] Fix Java 11 runtime issue in UnsafeAccess (#2594)

This commit is contained in:
Andrew Purtell 2020-10-29 14:33:38 -07:00 committed by GitHub
parent 0b48208bd5
commit 2e3f842dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ public final class UnsafeAccess {
public static final Unsafe theUnsafe;
/** The offset to the first element in a byte array. */
public static final int BYTE_ARRAY_BASE_OFFSET;
public static final long BYTE_ARRAY_BASE_OFFSET;
public static final boolean LITTLE_ENDIAN =
ByteOrder.nativeOrder().equals(ByteOrder.LITTLE_ENDIAN);