From 03268034c71a8d928585708bf11f874fa6a60bc8 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 23 Feb 2010 00:43:15 +0000 Subject: [PATCH] Removed unnecessary conditional --- .../java/org/jboss/netty/buffer/HeapChannelBufferFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/buffer/HeapChannelBufferFactory.java b/src/main/java/org/jboss/netty/buffer/HeapChannelBufferFactory.java index f408641d31..1a998bec99 100644 --- a/src/main/java/org/jboss/netty/buffer/HeapChannelBufferFactory.java +++ b/src/main/java/org/jboss/netty/buffer/HeapChannelBufferFactory.java @@ -78,7 +78,7 @@ public class HeapChannelBufferFactory extends AbstractChannelBufferFactory { } public ChannelBuffer getBuffer(ByteBuffer nioBuffer) { - if (!nioBuffer.isReadOnly() && nioBuffer.hasArray()) { + if (nioBuffer.hasArray()) { return ChannelBuffers.wrappedBuffer(nioBuffer); }