We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b7012f commit 5cbd2e0Copy full SHA for 5cbd2e0
msgpack-core/src/main/java/org/msgpack/core/buffer/ArrayBufferInput.java
@@ -17,7 +17,6 @@
17
18
import java.io.IOException;
19
20
-import static org.msgpack.core.Preconditions.checkArgument;
21
import static org.msgpack.core.Preconditions.checkNotNull;
22
23
/**
@@ -41,8 +40,7 @@ public ArrayBufferInput(byte[] arr)
41
40
42
public ArrayBufferInput(byte[] arr, int offset, int length)
43
{
44
- checkArgument(offset + length <= arr.length);
45
- this.buffer = MessageBuffer.wrap(checkNotNull(arr, "input array is null")).slice(offset, length);
+ this(MessageBuffer.wrap(checkNotNull(arr, "input array is null")).slice(offset, length));
46
}
47
48
0 commit comments