From f4fa5698c1ff391ea44a85f5136fa2c480e37f23 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 10 Aug 2012 10:19:01 +0900 Subject: [PATCH] Add a TODO which should be done when buffer pool is implemented --- .../src/main/java/io/netty/channel/DefaultChannelPipeline.java | 1 + 1 file changed, 1 insertion(+) diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java index 34cd6f8044..bdcc992a7d 100755 --- a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java @@ -1468,6 +1468,7 @@ public class DefaultChannelPipeline implements ChannelPipeline { public ChannelBuf newOutboundBuffer(ChannelHandlerContext ctx) throws Exception { switch (channel.metadata().bufferType()) { case BYTE: + // TODO: Use a direct buffer once buffer pooling is implemented. return Unpooled.buffer(); case MESSAGE: return Unpooled.messageBuffer();