Removed unnecessary conditional

This commit is contained in:
Trustin Lee 2010-02-23 00:43:15 +00:00
parent cc3b07c655
commit 03268034c7

View File

@ -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);
}