Fixed issue: NETTY-123 couple of errors in ReplayingDecoderBuffer.java
* Fixed a problem where ReplayingDecoderBuffer.indexOf ignores the specified parameters
This commit is contained in:
parent
0f5d16def8
commit
9445fd1b6f
@ -178,7 +178,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
||||
}
|
||||
|
||||
public int indexOf(int fromIndex, int toIndex, byte value) {
|
||||
int endIndex = buffer.indexOf(buffer.readerIndex(), buffer.writerIndex(), value);
|
||||
int endIndex = buffer.indexOf(fromIndex, toIndex, value);
|
||||
if (endIndex < 0) {
|
||||
throw REPLAY;
|
||||
}
|
||||
@ -187,7 +187,7 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
|
||||
|
||||
public int indexOf(int fromIndex, int toIndex,
|
||||
ChannelBufferIndexFinder indexFinder) {
|
||||
int endIndex = buffer.indexOf(buffer.readerIndex(), buffer.writerIndex(), indexFinder);
|
||||
int endIndex = buffer.indexOf(fromIndex, toIndex, indexFinder);
|
||||
if (endIndex < 0) {
|
||||
throw REPLAY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user