Fix infinite recursion
This commit is contained in:
parent
753d0bfbae
commit
340da3e97b
@ -248,7 +248,7 @@ final class PooledDirectByteBuf extends PooledByteBuf<ByteBuffer> {
|
||||
checkIndex(index, length);
|
||||
ByteBuf copy = alloc().directBuffer(capacity(), maxCapacity());
|
||||
copy.writeBytes(this, index, length);
|
||||
return copy();
|
||||
return copy;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -218,7 +218,7 @@ final class PooledHeapByteBuf extends PooledByteBuf<byte[]> {
|
||||
checkIndex(index, length);
|
||||
ByteBuf copy = alloc().heapBuffer(length, maxCapacity());
|
||||
copy.writeBytes(memory, idx(index), length);
|
||||
return copy();
|
||||
return copy;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user