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 1a2162ec35
commit 9b171beb92

View File

@ -94,8 +94,7 @@ import java.nio.channels.Channels;
* // from 1. * // from 1.
* {@code @Override} * {@code @Override}
* public void channelRead({@link ChannelHandlerContext} ctx, Object msg) { * 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;
@ -152,7 +151,7 @@ public interface ChannelHandlerContext extends AttributeMap {
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}.
*/ */