提交 9c9a030f 编写于 作者: A alanb

6903753: (se) Selector should implement Closeable

Reviewed-by: chegar, forax
上级 ad77dc7e
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
package java.nio.channels; package java.nio.channels;
import java.io.Closeable;
import java.io.IOException; import java.io.IOException;
import java.nio.channels.spi.SelectorProvider; import java.nio.channels.spi.SelectorProvider;
import java.util.Set; import java.util.Set;
...@@ -202,7 +203,7 @@ import java.util.Set; ...@@ -202,7 +203,7 @@ import java.util.Set;
* @see SelectionKey * @see SelectionKey
*/ */
public abstract class Selector { public abstract class Selector implements Closeable {
/** /**
* Initializes a new instance of this class. * Initializes a new instance of this class.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册