Skip to content

Commit cddbcca

Browse files
committed
Make MutableBytes inherit from ArrayWrappingBytes
Signed-off-by: Luis Pinto <[email protected]>
1 parent 0929d61 commit cddbcca

File tree

2 files changed

+75
-133
lines changed

2 files changed

+75
-133
lines changed

bytes/src/main/java/org/apache/tuweni/v2/bytes/ArrayWrappingBytes.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414

1515
class ArrayWrappingBytes extends Bytes {
1616

17-
protected final byte[] bytes;
17+
protected byte[] bytes;
1818
protected final int offset;
1919

20+
ArrayWrappingBytes(byte[] bytes) {
21+
this(bytes, 0, bytes.length);
22+
}
23+
2024
ArrayWrappingBytes(byte[] bytes, int offset, int length) {
2125
super(length);
2226
this.bytes = bytes;

0 commit comments

Comments
 (0)