rearrange
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 31 May 2007 19:34:05 +0000 (19:34 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 31 May 2007 19:34:05 +0000 (19:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543227 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/net/NioBlockingSelector.java

index f23e76d..a629613 100644 (file)
@@ -97,15 +97,6 @@ public class NioBlockingSelector {
         return written;
     }
 
-    private static void cancelKey(final NioChannel socket, final SelectionKey key) {
-        socket.getPoller().addEvent(
-            new Runnable() {
-            public void run() {
-                socket.getPoller().cancelledKey(key,SocketStatus.ERROR,false);
-            }
-        });
-    }
-
     /**
      * Performs a blocking read using the bytebuffer for data to be read
      * If the <code>selector</code> parameter is null, then it will perform a busy read that could
@@ -164,4 +155,13 @@ public class NioBlockingSelector {
         return read;
     }
 
+    private static void cancelKey(final NioChannel socket, final SelectionKey key) {
+        socket.getPoller().addEvent(
+            new Runnable() {
+            public void run() {
+                socket.getPoller().cancelledKey(key,SocketStatus.ERROR,false);
+            }
+        });
+    }
+
 }
\ No newline at end of file