src/share/classes/java/nio/channels/SelectableChannel.java
Print this page
@@ -206,11 +206,11 @@
* but the corresponding key has already been cancelled
*
* @throws IllegalArgumentException
* If a bit in the <tt>ops</tt> set does not correspond to an
* operation that is supported by this channel, that is, if
- * <tt>set & ~validOps() != 0</tt>
+ * {@code set & ~validOps() != 0}
*
* @return A key representing the registration of this channel with
* the given selector
*/
public abstract SelectionKey register(Selector sel, int ops, Object att)
@@ -263,12 +263,12 @@
* If this channel is currently registered with the given selector
* but the corresponding key has already been cancelled
*
* @throws IllegalArgumentException
* If a bit in <tt>ops</tt> does not correspond to an operation
- * that is supported by this channel, that is, if <tt>set &
- * ~validOps() != 0</tt>
+ * that is supported by this channel, that is, if {@code set &
+ * ~validOps() != 0}
*
* @return A key representing the registration of this channel with
* the given selector
*/
public final SelectionKey register(Selector sel, int ops)