Optimize PooledUnsafeDirectByteBuf.newInternalNioBuffer()

- No need to produce garbage
This commit is contained in:
Trustin Lee 2013-06-10 22:07:46 +09:00
parent d9806c8127
commit 7f7bf304b0

View File

@ -71,7 +71,7 @@ final class PooledUnsafeDirectByteBuf extends PooledByteBuf<ByteBuffer> {
@Override
protected ByteBuffer newInternalNioBuffer(ByteBuffer memory) {
return memory.duplicate();
return memory;
}
@Override