diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java index 1b66341f706..b085b3ea050 100644 --- a/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java +++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java @@ -1127,7 +1127,7 @@ public class Bytes implements Comparable { * @return the short value */ public static short toShort(byte[] bytes) { - return toShortUnsafe(bytes, 0); + return toShort(bytes, 0, SIZEOF_SHORT); } /**