From: fhanik Date: Thu, 31 May 2007 19:34:05 +0000 (+0000) Subject: rearrange X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3e4f377972c771af5af7de879a162b1f51d75ff4;p=tomcat7.0 rearrange git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@543227 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/net/NioBlockingSelector.java b/java/org/apache/tomcat/util/net/NioBlockingSelector.java index f23e76d4f..a629613ac 100644 --- a/java/org/apache/tomcat/util/net/NioBlockingSelector.java +++ b/java/org/apache/tomcat/util/net/NioBlockingSelector.java @@ -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 selector 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