use the available ZERO_BYTE_ARRAY

This commit is contained in:
ligi 2015-01-10 21:05:00 +01:00
parent 9ab5c21fdd
commit 3a8258a07e
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ public class ByteUtil {
final int firstNonZero = firstNonZeroByte(data);
switch (firstNonZero) {
case -1:
return new byte[0];
return ZERO_BYTE_ARRAY;
case 0:
return data;