summaryrefslogtreecommitdiffstats
path: root/libjava/java
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-18 14:31:39 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-18 14:31:39 +0000
commit943e75c9ea68338d50d9733e7c1d8b11d6acbe12 (patch)
tree07e2c11bfc0737f4c15c64f66020209c8c2dad6e /libjava/java
parent8c30649501d4c8ae79d81644ed0f429a670f04a0 (diff)
downloadppe42-gcc-943e75c9ea68338d50d9733e7c1d8b11d6acbe12.tar.gz
ppe42-gcc-943e75c9ea68338d50d9733e7c1d8b11d6acbe12.zip
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". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59219 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/nio/channels/SelectionKey.java2
-rw-r--r--libjava/java/nio/channels/Selector.java2
2 files changed, 3 insertions, 1 deletions
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 ();
}
OpenPOWER on IntegriCloud