mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-16 13:46:46 +00:00
use the available ZERO_BYTE_ARRAY
This commit is contained in:
parent
9ab5c21fdd
commit
3a8258a07e
@ -269,7 +269,7 @@ public class ByteUtil {
|
|||||||
final int firstNonZero = firstNonZeroByte(data);
|
final int firstNonZero = firstNonZeroByte(data);
|
||||||
switch (firstNonZero) {
|
switch (firstNonZero) {
|
||||||
case -1:
|
case -1:
|
||||||
return new byte[0];
|
return ZERO_BYTE_ARRAY;
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user