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
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
||||
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user