From 76e3aaa436623c5cf13865fb12e6556243f7c619 Mon Sep 17 00:00:00 2001 From: Alan Bateman Date: Mon, 7 Dec 2009 12:24:57 +0000 Subject: [PATCH] 6903753: (se) Selector should implement Closeable Reviewed-by: chegar, forax --- jdk/src/share/classes/java/nio/channels/Selector.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/nio/channels/Selector.java b/jdk/src/share/classes/java/nio/channels/Selector.java index 46709d16fe1..e31555c122d 100644 --- a/jdk/src/share/classes/java/nio/channels/Selector.java +++ b/jdk/src/share/classes/java/nio/channels/Selector.java @@ -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 @@ import java.util.Set; * @see SelectionKey */ -public abstract class Selector { +public abstract class Selector implements Closeable { /** * Initializes a new instance of this class.