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

Reapply with corrected commit message.

Signed-off-by: Reid Chan <reidchan@apache.org>
Signed-off-by: Viraj Jasani <vjasani@apache.org>
Signed-off-by: Bharath Vissapragada <bharathv@apache.org>
Signed-off-by: Michael Stack <stack@apache.org>
This commit is contained in:
Andrew Purtell 2020-10-29 10:25:37 -07:00 committed by Andrew Purtell
parent 60105e1b22
commit 8813b3bfc1
1 changed files with 1 additions and 1 deletions

View File

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