Channel.isWritable() implementation is difference from javadoc
이희승 (Trustin Lee)
trustin at gmail.com
Tue Sep 1 01:18:36 EDT 2009
Implementation is correct and documentation is wrong. I've just
checked in the fix.
Thanks a lot!
Trustin
On Mon, 31 Aug 2009 19:37:22 +0900 (KST)
森野 陽 <morino at infocity.co.jp> wrote:
> 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?
>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
--
Trustin Lee, http://gleamynode.net/
More information about the netty-users
mailing list