# HG changeset patch # User alanb # Date 1260188697 0 # Node ID c6b75a422eb8de9e8ee9691c7082acb7759b43e6 # Parent c72a4e2ec170a7944434da6fdb44f3cc280f70d8 6903753: (se) Selector should implement Closeable Reviewed-by: chegar, forax diff -r c72a4e2ec170 -r c6b75a422eb8 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.