diff --git a/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java b/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java index 4f9a32fdd1..8bcd3077b4 100644 --- a/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java +++ b/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java @@ -62,7 +62,7 @@ import java.util.concurrent.TimeUnit; * // for 30 seconds. The connection is closed when there is no inbound traffic * // for 60 seconds. * - * public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> { + * public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> { * {@code @Override} * public void initChannel({@link Channel} channel) { * channel.pipeline().addLast("idleStateHandler", new {@link IdleStateHandler}(60, 30, 0)); diff --git a/handler/src/main/java/io/netty/handler/timeout/ReadTimeoutHandler.java b/handler/src/main/java/io/netty/handler/timeout/ReadTimeoutHandler.java index b52946d08d..b6190efb72 100644 --- a/handler/src/main/java/io/netty/handler/timeout/ReadTimeoutHandler.java +++ b/handler/src/main/java/io/netty/handler/timeout/ReadTimeoutHandler.java @@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit; * // The connection is closed when there is no inbound traffic * // for 30 seconds. * - * public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> { + * public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> { * public void initChannel({@link Channel} channel) { * channel.pipeline().addLast("readTimeoutHandler", new {@link ReadTimeoutHandler}(30); * channel.pipeline().addLast("myHandler", new MyHandler()); diff --git a/handler/src/main/java/io/netty/handler/timeout/WriteTimeoutHandler.java b/handler/src/main/java/io/netty/handler/timeout/WriteTimeoutHandler.java index 6252961e95..b4a9428255 100644 --- a/handler/src/main/java/io/netty/handler/timeout/WriteTimeoutHandler.java +++ b/handler/src/main/java/io/netty/handler/timeout/WriteTimeoutHandler.java @@ -36,7 +36,7 @@ import java.util.concurrent.TimeUnit; * // The connection is closed when there is no outbound traffic * // for 30 seconds. * - * public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> { + * public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> { * public void initChannel({@link Channel} channel) { * channel.pipeline().addLast("writeTimeoutHandler", new {@link WriteTimeoutHandler}(30); * channel.pipeline().addLast("myHandler", new MyHandler()); diff --git a/transport/src/main/java/io/netty/channel/ChannelHandler.java b/transport/src/main/java/io/netty/channel/ChannelHandler.java index b1e978e2d3..806ba11af1 100644 --- a/transport/src/main/java/io/netty/channel/ChannelHandler.java +++ b/transport/src/main/java/io/netty/channel/ChannelHandler.java @@ -92,7 +92,7 @@ import java.lang.annotation.Target; *
  * // Create a new handler instance per channel.
  * // See {@link ChannelInitializer#initChannel(Channel)}.
- * public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
+ * public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
  *     {@code @Override}
  *     public void initChannel({@link Channel} channel) {
  *         channel.pipeline().addLast("handler", new DataServerHandler());
@@ -114,12 +114,12 @@ import java.lang.annotation.Target;
  *
  * {@code @Sharable}
  * public class DataServerHandler extends {@link SimpleChannelInboundHandler}<Message> {
- *     private final {@link AttributeKey}<{@link Boolean}> auth =
+ *     private final {@link AttributeKey}<{@link Boolean}> auth =
  *           {@link AttributeKey#valueOf(String) AttributeKey.valueOf("auth")};
  *
  *     {@code @Override}
  *     public void channelRead({@link ChannelHandlerContext} ctx, Message message) {
- *         {@link Attribute}<{@link Boolean}> attr = ctx.attr(auth);
+ *         {@link Attribute}<{@link Boolean}> attr = ctx.attr(auth);
  *         {@link Channel} ch = ctx.channel();
  *         if (message instanceof LoginMessage) {
  *             authenticate((LoginMessage) o);
@@ -138,7 +138,7 @@ import java.lang.annotation.Target;
  * Now that the state of the handler isattached to the {@link ChannelHandlerContext}, you can add the
  * same handler instance to different pipelines:
  * 
- * public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
+ * public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
  *
  *     private static final DataServerHandler SHARED = new DataServerHandler();
  *
diff --git a/transport/src/main/java/io/netty/channel/ChannelHandlerContext.java b/transport/src/main/java/io/netty/channel/ChannelHandlerContext.java
index 2d03c6babd..c85ae1d25d 100644
--- a/transport/src/main/java/io/netty/channel/ChannelHandlerContext.java
+++ b/transport/src/main/java/io/netty/channel/ChannelHandlerContext.java
@@ -87,14 +87,14 @@ import java.nio.channels.Channels;
  * 
  * public class FactorialHandler extends {@link ChannelInboundHandlerAdapter}<{@link Integer}> {
  *
- *   private final {@link AttributeKey}<{@link Integer}> counter =
- *           new {@link AttributeKey}<{@link Integer}>("counter");
+ *   private final {@link AttributeKey}<{@link Integer}> counter =
+ *           new {@link AttributeKey}<{@link Integer}>("counter");
  *
  *   // This handler will receive a sequence of increasing integers starting
  *   // from 1.
  *   {@code @Override}
  *   public void channelRead({@link ChannelHandlerContext} ctx, {@link Integer} integer) {
- *     {@link Attribute}<{@link Integer}> attr = ctx.getAttr(counter);
+ *     {@link Attribute}<{@link Integer}> attr = ctx.getAttr(counter);
  *     Integer a = ctx.getAttr(counter).get();
  *
  *     if (a == null) {