2002-11-18 Michael Koch <konqueror@gmx.de>
authorMichael Koch <mkoch@gcc.gnu.org>
Mon, 18 Nov 2002 14:31:39 +0000 (14:31 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Mon, 18 Nov 2002 14:31:39 +0000 (14:31 +0000)
* java/nio/channels/SelectionKey.java
(isValid): Added exception documentation.
* java/nio/channels/Selector.java
(open): Declare "throws IOException".

From-SVN: r59219

libjava/ChangeLog
libjava/java/nio/channels/SelectionKey.java
libjava/java/nio/channels/Selector.java

index 7942b98059db1ce3196a4bafbb30e566b38d5357..7fe9594ccc2cb941b8392ccabf4d356d4d94777d 100644 (file)
@@ -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.
index 8d06a301143fae67eec8d473c6a962e47d053181..361be1895da6486f5f1f15617d6d3afe1e830cb7 100644 (file)
@@ -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 ();
  
index a71280753d6559433495247c4a5e47cea9153e91..695969b5b3ace5b722a80616bd6f7ff5a245c56e 100644 (file)
@@ -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 ();
   }