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);
|
checkIndex(index, length);
|
||||||
ByteBuf copy = alloc().directBuffer(capacity(), maxCapacity());
|
ByteBuf copy = alloc().directBuffer(capacity(), maxCapacity());
|
||||||
copy.writeBytes(this, index, length);
|
copy.writeBytes(this, index, length);
|
||||||
return copy();
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -218,7 +218,7 @@ final class PooledHeapByteBuf extends PooledByteBuf<byte[]> {
|
|||||||
checkIndex(index, length);
|
checkIndex(index, length);
|
||||||
ByteBuf copy = alloc().heapBuffer(length, maxCapacity());
|
ByteBuf copy = alloc().heapBuffer(length, maxCapacity());
|
||||||
copy.writeBytes(memory, idx(index), length);
|
copy.writeBytes(memory, idx(index), length);
|
||||||
return copy();
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user