Fix infinite recursion

This commit is contained in:
Trustin Lee 2013-01-10 18:43:20 +09:00
parent 753d0bfbae
commit 340da3e97b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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