6608833: (se spec) SelectionKey @throws references wrong param
authorsherman
Mon, 14 Jul 2008 14:03:42 -0700
changeset 841 3234b58ccc92
parent 789 218b7e32fe38
child 842 93b8777f4184
6608833: (se spec) SelectionKey @throws references wrong param Summary: Update the API doc to correct the wrong description Reviewed-by: alanb
jdk/src/share/classes/java/nio/channels/SelectionKey.java
--- a/jdk/src/share/classes/java/nio/channels/SelectionKey.java	Fri Jun 27 12:09:37 2008 -0700
+++ b/jdk/src/share/classes/java/nio/channels/SelectionKey.java	Mon Jul 14 14:03:42 2008 -0700
@@ -191,7 +191,7 @@
      * @throws  IllegalArgumentException
      *          If a bit in the set does not correspond to an operation that
      *          is supported by this key's channel, that is, if
-     *          <tt>set & ~(channel().validOps()) != 0</tt>
+     *          <tt>(ops & ~channel().validOps()) != 0</tt>
      *
      * @throws  CancelledKeyException
      *          If this key has been cancelled