Trivial javadoc fixes in ChannelHandlerContext

This commit is contained in:
Sky Ao 2015-12-18 10:27:37 +08:00 committed by Norman Maurer
parent de76843905
commit 38df32e2a8

View File

@ -18,7 +18,6 @@ package io.netty.channel;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator; import io.netty.buffer.ByteBufAllocator;
import io.netty.util.Attribute;
import io.netty.util.AttributeKey; import io.netty.util.AttributeKey;
import io.netty.util.AttributeMap; import io.netty.util.AttributeMap;
import io.netty.util.concurrent.EventExecutor; import io.netty.util.concurrent.EventExecutor;
@ -93,9 +92,8 @@ import java.nio.channels.Channels;
* // This handler will receive a sequence of increasing integers starting * // This handler will receive a sequence of increasing integers starting
* // from 1. * // from 1.
* {@code @Override} * {@code @Override}
* public void channelRead({@link ChannelHandlerContext} ctx, {@link Integer} integer) { * public void channelRead({@link ChannelHandlerContext} ctx, Object msg) {
* {@link Attribute}<{@link Integer}> attr = ctx.getAttr(counter); * Integer a = ctx.attr(counter).get();
* Integer a = ctx.getAttr(counter).get();
* *
* if (a == null) { * if (a == null) {
* a = 1; * a = 1;
@ -155,7 +153,7 @@ public interface ChannelHandlerContext
ChannelHandler handler(); ChannelHandler handler();
/** /**
* Return {@code true} if the {@link ChannelHandler} which belongs to this {@link ChannelHandler} was removed * Return {@code true} if the {@link ChannelHandler} which belongs to this context was removed
* from the {@link ChannelPipeline}. Note that this method is only meant to be called from with in the * from the {@link ChannelPipeline}. Note that this method is only meant to be called from with in the
* {@link EventLoop}. * {@link EventLoop}.
*/ */