just read byte in channel buffer wrapper, no need to check for bounds since it is checked internally
This commit is contained in:
parent
3cd08e49e8
commit
ef9c96faa6
|
@ -120,9 +120,6 @@ public class ChannelBufferStreamInput extends StreamInput {
|
|||
|
||||
@Override
|
||||
public byte readByte() throws IOException {
|
||||
if (available() == 0) {
|
||||
throw new EOFException();
|
||||
}
|
||||
return buffer.readByte();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue