We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 706ea5f commit f7e0486Copy full SHA for f7e0486
1 file changed
src/main/java/at/favre/lib/bytes/Bytes.java
@@ -98,7 +98,7 @@ public static Bytes allocate(int length) {
98
* @return new instance
99
*/
100
public static Bytes allocate(int length, byte defaultValue) {
101
- if (length == 0) return EMPTY;
+ if (length == 0) return empty();
102
byte[] array = new byte[length];
103
if (defaultValue != 0) {
104
Arrays.fill(array, defaultValue);
0 commit comments