From 55c39c44b0964c2236367aa530c0a8faa48a78d0 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sat, 7 Jan 2017 21:08:55 +0100 Subject: [PATCH] Fix missleading comment in AbstractChannelHandlerContext.invokeHandler() Motivation: The comment on AbstractChannelHandlerContext.invokeHandler() is incorrect and missleading. See [#6177] Modifications: Change true to false to correct the comment. Result: Fix missleading and incorrect comment. --- .../java/io/netty/channel/AbstractChannelHandlerContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java b/transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java index bc2d09e749..7dfc009688 100644 --- a/transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java +++ b/transport/src/main/java/io/netty/channel/AbstractChannelHandlerContext.java @@ -971,7 +971,7 @@ abstract class AbstractChannelHandlerContext extends DefaultAttributeMap impleme * Makes best possible effort to detect if {@link ChannelHandler#handlerAdded(ChannelHandlerContext)} was called * yet. If not return {@code false} and if called or could not detect return {@code true}. * - * If this method returns {@code true} we will not invoke the {@link ChannelHandler} but just forward the event. + * If this method returns {@code false} we will not invoke the {@link ChannelHandler} but just forward the event. * This is needed as {@link DefaultChannelPipeline} may already put the {@link ChannelHandler} in the linked-list * but not called {@link ChannelHandler#handlerAdded(ChannelHandlerContext)}. */