Removed unnecessary lock

This commit is contained in:
Trustin Lee 2010-06-01 08:38:51 +00:00
parent 62746e3e5e
commit a55a1c6e72

View File

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