From 883ab29d055b53f93b931c768086b1903081c7a6 Mon Sep 17 00:00:00 2001 From: Alex Petrov Date: Wed, 20 Nov 2013 10:13:33 +0100 Subject: [PATCH] Improve doc of IdleStateHandler according to example given in UptimeClientHandler (L57) --- .../main/java/io/netty/handler/timeout/IdleStateHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 19b8b9c8d9..c69aa7b38e 100644 --- a/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java +++ b/handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java @@ -74,8 +74,8 @@ import java.util.concurrent.TimeUnit; * public class MyHandler extends {@link ChannelDuplexHandler} { * {@code @Override} * public void userEventTriggered({@link ChannelHandlerContext} ctx, {@link Object} evt) throws {@link Exception} { - * if (evt instanceof {@link IdleState}} { - * {@link IdleState} e = ({@link IdleState}) evt; + * if (evt instanceof {@link IdleStateEvent}} { + * {@link IdleStateEvent} e = ({@link IdleStateEvent}) evt; * if (e.state() == {@link IdleState}.READER_IDLE) { * ctx.close(); * } else if (e.state() == {@link IdleState}.WRITER_IDLE) {