Channel.isWritable() implementation is difference from javadoc
森野 陽
morino at infocity.co.jp
Mon Aug 31 06:37:22 EDT 2009
Channel.isWritable() implementation is the below
(http://fisheye.jboss.org/browse/Netty/trunk/src/main/java/org/jboss/netty/channel/AbstractChannel.java?r=1685)
----
public boolean isWritable() {
return (getInterestOps() & OP_WRITE) == 0;
}
----
but in javadoc, like following
----
return (getInterestOps() & OP_WRITE) != 0;
----
Which is correct?
More information about the netty-users
mailing list