From cd11786994a6863f1f6a52d29c059b49bfad7750 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 24 May 2012 08:51:46 -0700 Subject: [PATCH] Fix typo in the comment --- .../netty/channel/socket/nio/NioSocketChannel.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java b/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java index 7094e9861e..9e97fe2587 100644 --- a/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java +++ b/transport/src/main/java/io/netty/channel/socket/nio/NioSocketChannel.java @@ -26,7 +26,6 @@ import io.netty.logging.InternalLogger; import io.netty.logging.InternalLoggerFactory; import java.io.IOException; -import java.net.InetSocketAddress; import java.net.SocketAddress; import java.nio.channels.SelectionKey; import java.nio.channels.SocketChannel; @@ -80,16 +79,6 @@ public class NioSocketChannel extends AbstractNioChannel implements io.netty.cha return config; } - @Override - public InetSocketAddress localAddress() { - return (InetSocketAddress) super.localAddress(); - } - - @Override - public InetSocketAddress remoteAddress() { - return (InetSocketAddress) super.remoteAddress(); - } - @Override protected SocketChannel javaChannel() { return (SocketChannel) super.javaChannel(); @@ -199,7 +188,7 @@ public class NioSocketChannel extends AbstractNioChannel implements io.netty.cha // b) If wrote nothing: // 1) If 'lastSpin' is false, the caller will call this method again real soon. // - Do not update OP_WRITE. - // a) If 'lastSpin' is true, the caller will not retry. + // 2) If 'lastSpin' is true, the caller will not retry. // - Set OP_WRITE so that the event loop calls flushForcibly() later. if (writtenBytes > 0 || lastSpin) { if ((interestOps & SelectionKey.OP_WRITE) == 0) {