Remove not-needed call of ByteBuffer.clear(). See #161
This commit is contained in:
parent
e4fa180478
commit
12852a20fb
@ -54,7 +54,6 @@ final class SocketReceiveBufferPool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ByteBuffer buf = ByteBuffer.allocateDirect(normalizeCapacity(size));
|
ByteBuffer buf = ByteBuffer.allocateDirect(normalizeCapacity(size));
|
||||||
buf.clear();
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user