From a55a1c6e7293e3ae0d64aefa54667ee57a9e7cf7 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 1 Jun 2010 08:38:51 +0000 Subject: [PATCH] Removed unnecessary lock --- .../java/org/jboss/netty/buffer/DirectChannelBufferFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/buffer/DirectChannelBufferFactory.java b/src/main/java/org/jboss/netty/buffer/DirectChannelBufferFactory.java index 3b28fcc1ee..6cd3d7c548 100644 --- a/src/main/java/org/jboss/netty/buffer/DirectChannelBufferFactory.java +++ b/src/main/java/org/jboss/netty/buffer/DirectChannelBufferFactory.java @@ -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) {