hi,developers,
I find an duplicate code in NioProcessor.java, I think they do the same thing.

 (1)
  protected boolean isInterestedInRead(NioSession session) {
       SelectionKey key = session.getSelectionKey();
return key.isValid() && (key.interestOps() & SelectionKey.OP_READ) != 0;
   }
 (2)
   protected boolean isReadable(NioSession session) {
       SelectionKey key = session.getSelectionKey();
       return key.isValid() && key.isReadable();
   }
  the code comes from mina-2.0.0-M4
thanks for your reply..

Houzhanbin

Reply via email to