just read byte in channel buffer wrapper, no need to check for bounds since it is checked internally

This commit is contained in:
Shay Banon 2012-01-08 13:57:10 +02:00
parent 3cd08e49e8
commit ef9c96faa6
1 changed files with 0 additions and 3 deletions

View File

@ -120,9 +120,6 @@ public class ChannelBufferStreamInput extends StreamInput {
@Override
public byte readByte() throws IOException {
if (available() == 0) {
throw new EOFException();
}
return buffer.readByte();
}