NioUnsafe.ch() should return SelectableChannel

This commit is contained in:
Trustin Lee 2012-10-24 11:37:41 -07:00
parent bd8c4fe050
commit 63d3210cff

View File

@ -125,7 +125,7 @@ public abstract class AbstractNioChannel extends AbstractChannel {
} }
public interface NioUnsafe extends Unsafe { public interface NioUnsafe extends Unsafe {
java.nio.channels.Channel ch(); SelectableChannel ch();
void finishConnect(); void finishConnect();
void read(); void read();
} }
@ -133,7 +133,7 @@ public abstract class AbstractNioChannel extends AbstractChannel {
protected abstract class AbstractNioUnsafe extends AbstractUnsafe implements NioUnsafe { protected abstract class AbstractNioUnsafe extends AbstractUnsafe implements NioUnsafe {
@Override @Override
public java.nio.channels.Channel ch() { public SelectableChannel ch() {
return javaChannel(); return javaChannel();
} }