From ecfef45b9a3a1cb17979f9d1c2358cae98bee7f1 Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Mon, 18 Nov 2002 14:31:39 +0000 Subject: [PATCH] 2002-11-18 Michael Koch * java/nio/channels/SelectionKey.java (isValid): Added exception documentation. * java/nio/channels/Selector.java (open): Declare "throws IOException". From-SVN: r59219 --- libjava/ChangeLog | 9 ++++++++- libjava/java/nio/channels/SelectionKey.java | 2 ++ libjava/java/nio/channels/Selector.java | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7942b98059d..7fe9594ccc2 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,4 +1,11 @@ -2002-11-17 Jesse Rosenstock +2002-11-18 Michael Koch + + * java/nio/channels/SelectionKey.java + (isValid): Added exception documentation. + * java/nio/channels/Selector.java + (open): Declare "throws IOException". + +2002-11-18 Jesse Rosenstock * java/nio/charset/Charset.java (): New method. diff --git a/libjava/java/nio/channels/SelectionKey.java b/libjava/java/nio/channels/SelectionKey.java index 8d06a301143..361be1895da 100644 --- a/libjava/java/nio/channels/SelectionKey.java +++ b/libjava/java/nio/channels/SelectionKey.java @@ -147,6 +147,8 @@ public abstract class SelectionKey /** * Tells whether or not this key is valid. + * + * @exception CancelledKeyException If this key has been cancelled */ public abstract boolean isValid (); diff --git a/libjava/java/nio/channels/Selector.java b/libjava/java/nio/channels/Selector.java index a71280753d6..695969b5b3a 100644 --- a/libjava/java/nio/channels/Selector.java +++ b/libjava/java/nio/channels/Selector.java @@ -59,7 +59,7 @@ public abstract class Selector * * @exception IOException If an error occurs */ - public static Selector open () + public static Selector open () throws IOException { return SelectorProvider.provider ().openSelector (); }