Move method in correct scope

This commit is contained in:
Norman Maurer 2013-08-09 13:30:04 +02:00
parent 4d0621855a
commit 9d8c4ded50

View File

@ -261,6 +261,11 @@ public abstract class AbstractNioChannel extends AbstractChannel {
// directly call super.flush0() to force a flush now // directly call super.flush0() to force a flush now
super.flush0(); super.flush0();
} }
private boolean isFlushPending() {
SelectionKey selectionKey = selectionKey();
return selectionKey.isValid() && (selectionKey.interestOps() & SelectionKey.OP_WRITE) != 0;
}
} }
@Override @Override
@ -268,11 +273,6 @@ public abstract class AbstractNioChannel extends AbstractChannel {
return loop instanceof NioEventLoop; return loop instanceof NioEventLoop;
} }
private boolean isFlushPending() {
SelectionKey selectionKey = this.selectionKey;
return selectionKey.isValid() && (selectionKey.interestOps() & SelectionKey.OP_WRITE) != 0;
}
@Override @Override
protected void doRegister() throws Exception { protected void doRegister() throws Exception {
boolean selected = false; boolean selected = false;