diff options
author | Michael Koch <mkoch@gcc.gnu.org> | 2002-11-18 14:31:39 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2002-11-18 14:31:39 +0000 |
commit | ecfef45b9a3a1cb17979f9d1c2358cae98bee7f1 (patch) | |
tree | 07e2c11bfc0737f4c15c64f66020209c8c2dad6e | |
parent | 3386451d202d3de5d223dec8de08a90f8fe607e0 (diff) | |
download | gcc-ecfef45b9a3a1cb17979f9d1c2358cae98bee7f1.zip gcc-ecfef45b9a3a1cb17979f9d1c2358cae98bee7f1.tar.gz gcc-ecfef45b9a3a1cb17979f9d1c2358cae98bee7f1.tar.bz2 |
2002-11-18 Michael Koch <konqueror@gmx.de>
* java/nio/channels/SelectionKey.java
(isValid): Added exception documentation.
* java/nio/channels/Selector.java
(open): Declare "throws IOException".
From-SVN: r59219
-rw-r--r-- | libjava/ChangeLog | 9 | ||||
-rw-r--r-- | libjava/java/nio/channels/SelectionKey.java | 2 | ||||
-rw-r--r-- | libjava/java/nio/channels/Selector.java | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7942b98..7fe9594 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,4 +1,11 @@ -2002-11-17 Jesse Rosenstock <jmr@ugcs.caltech.edu> +2002-11-18 Michael Koch <konqueror@gmx.de> + + * java/nio/channels/SelectionKey.java + (isValid): Added exception documentation. + * java/nio/channels/Selector.java + (open): Declare "throws IOException". + +2002-11-18 Jesse Rosenstock <jmr@ugcs.caltech.edu> * java/nio/charset/Charset.java (<clinit>): New method. diff --git a/libjava/java/nio/channels/SelectionKey.java b/libjava/java/nio/channels/SelectionKey.java index 8d06a30..361be18 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 a7128075..695969b 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 (); } |