Skip to content

Commit b1db42d

Browse files
committed
ArrayBufferInput and ByteBufferInput will never throw IOException
1 parent 446da7d commit b1db42d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

msgpack-core/src/main/java/org/msgpack/core/buffer/ArrayBufferInput.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public void reset(byte[] arr, int offset, int len)
8080

8181
@Override
8282
public MessageBuffer next()
83-
throws IOException
8483
{
8584
if (isEmpty) {
8685
return null;
@@ -91,7 +90,6 @@ public MessageBuffer next()
9190

9291
@Override
9392
public void close()
94-
throws IOException
9593
{
9694
buffer = null;
9795
isEmpty = true;

msgpack-core/src/main/java/org/msgpack/core/buffer/ByteBufferInput.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public ByteBuffer reset(ByteBuffer input)
5050

5151
@Override
5252
public MessageBuffer next()
53-
throws IOException
5453
{
5554
if (isRead) {
5655
return null;
@@ -62,8 +61,7 @@ public MessageBuffer next()
6261

6362
@Override
6463
public void close()
65-
throws IOException
6664
{
6765
// Nothing to do
6866
}
69-
}
67+
}

0 commit comments

Comments
 (0)