Removed unnecessary lock
This commit is contained in:
parent
62746e3e5e
commit
a55a1c6e72
@ -180,7 +180,7 @@ public class DirectChannelBufferFactory extends AbstractChannelBufferFactory {
|
||||
return slice;
|
||||
}
|
||||
|
||||
private synchronized ChannelBuffer allocateLittleEndianBuffer(int capacity) {
|
||||
private ChannelBuffer allocateLittleEndianBuffer(int capacity) {
|
||||
ChannelBuffer slice;
|
||||
synchronized (littleEndianLock) {
|
||||
if (preallocatedLittleEndianBuffer == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user