Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Unified Diff: third_party/deftserver/ioloop-reset.diff

Issue 9314025: Remove fling, deftserver (used only by fling), and commons-codec (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/deftserver/README ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/deftserver/ioloop-reset.diff
===================================================================
--- third_party/deftserver/ioloop-reset.diff (revision 3853)
+++ third_party/deftserver/ioloop-reset.diff (working copy)
@@ -1,33 +0,0 @@
-diff --git a/src/main/java/org/deftserver/io/IOLoop.java b/src/main/java/org/deftserver/io/IOLoop.java
-index f64d3d8..20db7dd 100644
---- a/src/main/java/org/deftserver/io/IOLoop.java
-+++ b/src/main/java/org/deftserver/io/IOLoop.java
-@@ -7,6 +7,7 @@ import java.nio.channels.ClosedChannelException;
- import java.nio.channels.SelectableChannel;
- import java.nio.channels.SelectionKey;
- import java.nio.channels.Selector;
-+import java.util.ArrayList;
- import java.util.Collection;
- import java.util.HashMap;
- import java.util.Iterator;
-@@ -19,6 +20,7 @@ import org.deftserver.io.callback.JMXDebuggableCallbackManager;
- import org.deftserver.io.timeout.JMXDebuggableTimeoutManager;
- import org.deftserver.io.timeout.Timeout;
- import org.deftserver.io.timeout.TimeoutManager;
-+import org.deftserver.util.Closeables;
- import org.deftserver.util.MXBeanUtil;
- import org.deftserver.web.AsyncCallback;
- import org.slf4j.Logger;
-@@ -112,6 +114,12 @@ public class IOLoop implements IOLoopMXBean {
- running = false;
- logger.debug("Stopping IOLoop...");
- }
-+
-+ public void reset() {
-+ for (SelectableChannel channel : new ArrayList<SelectableChannel>(handlers.keySet())) {
-+ Closeables.closeQuietly(this, channel);
-+ }
-+ }
-
- /**
- * Registers a new {@code IOHandler} with this {@code IOLoop}.
« no previous file with comments | « third_party/deftserver/README ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698