HBASE-16932 addendum fix incorrect System.arraycopy

This commit is contained in:
zhangduo 2016-10-28 21:39:54 +08:00
parent 3dac4f38cd
commit 9607409fca
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ public final class ConnectionUtils {
byte[] nextRow = new byte[row.length + MAX_BYTE_ARRAY.length];
System.arraycopy(row, 0, nextRow, 0, row.length - 1);
nextRow[row.length - 1] = (byte) ((row[row.length - 1] & 0xFF) - 1);
System.arraycopy(nextRow, row.length, MAX_BYTE_ARRAY, 0, MAX_BYTE_ARRAY.length);
System.arraycopy(MAX_BYTE_ARRAY, 0, nextRow, row.length, MAX_BYTE_ARRAY.length);
return nextRow;
}
}