6903753: (se) Selector should implement Closeable
authoralanb
Mon, 07 Dec 2009 12:24:57 +0000
changeset 4351 c6b75a422eb8
parent 4349 c72a4e2ec170
child 4352 ddaa5f39a2ac
6903753: (se) Selector should implement Closeable Reviewed-by: chegar, forax
jdk/src/share/classes/java/nio/channels/Selector.java
--- a/jdk/src/share/classes/java/nio/channels/Selector.java	Mon Dec 07 15:29:44 2009 +0800
+++ b/jdk/src/share/classes/java/nio/channels/Selector.java	Mon Dec 07 12:24:57 2009 +0000
@@ -25,6 +25,7 @@
 
 package java.nio.channels;
 
+import java.io.Closeable;
 import java.io.IOException;
 import java.nio.channels.spi.SelectorProvider;
 import java.util.Set;
@@ -202,7 +203,7 @@
  * @see SelectionKey
  */
 
-public abstract class Selector {
+public abstract class Selector implements Closeable {
 
     /**
      * Initializes a new instance of this class.