synchronized (mSelectionKey) { if (!mSelectionKey.isValid()) { if (mTrace) mLog.trace("noop unregister write interest - selection key is invalid"); return; }  int iops = mSelectionKey.interestOps();  if ((iops & SelectionKey.OP_WRITE) == 0) { if (mTrace) mLog.trace("noop unregister write interest - write interest not registered"); return; }  mSelectionKey.interestOps(iops & (~SelectionKey.OP_WRITE)); OzUtil.logKey(mLog, mSelectionKey, "unregistered write interest");  mServer.wakeupSelector(); }
int iops = mSelectionKey.interestOps(); mSelectionKey.interestOps(iops & (~SelectionKey.OP_WRITE)); OzUtil.logKey(mLog, mSelectionKey, "unregistered write interest");
    private void unregisterWriteInterest() {        synchronized (mSelectionKey) {            if (!mSelectionKey.isValid()) {                if (mTrace) mLog.trace("noop unregister write interest - selection key is invalid");                 return;            }                        int iops = mSelectionKey.interestOps();                        if ((iops & SelectionKey.OP_WRITE) == 0) {                if (mTrace) mLog.trace("noop unregister write interest - write interest not registered");                return;            }                        mSelectionKey.interestOps(iops & (~SelectionKey.OP_WRITE));            OzUtil.logKey(mLog, mSelectionKey, "unregistered write interest");                        mServer.wakeupSelector();        }    }