changeset 1956:c68f6b6b47fd

6903753: (se) Selector should implement Closeable Reviewed-by: chegar, forax
author alanb
date Mon, 07 Dec 2009 12:24:57 +0000
parents 17be46c2f853
children 587fa61c0f07
files src/share/classes/java/nio/channels/Selector.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/nio/channels/Selector.java	Mon Dec 07 15:29:44 2009 +0800
+++ b/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.