diff options
author | jfrijters <jfrijters> | 2007-07-20 13:17:25 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2007-07-20 13:17:25 +0400 |
commit | 10a9e24f6787b08c62e8c83b75691227d874f2a7 (patch) | |
tree | ba4d5f48c4db41802eeef2a2dd286e56d180e6b4 /openjdk/sun/nio/ch/SelectionKeyImpl.java | |
parent | 8401761ae0903bbf1807526bc65be8b129e89458 (diff) |
- Implemented DatagramChannelImpl and PipeImpl.
- More nio fixes.
Diffstat (limited to 'openjdk/sun/nio/ch/SelectionKeyImpl.java')
-rw-r--r-- | openjdk/sun/nio/ch/SelectionKeyImpl.java | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/openjdk/sun/nio/ch/SelectionKeyImpl.java b/openjdk/sun/nio/ch/SelectionKeyImpl.java index 0d96c3fc..f67d23db 100644 --- a/openjdk/sun/nio/ch/SelectionKeyImpl.java +++ b/openjdk/sun/nio/ch/SelectionKeyImpl.java @@ -41,19 +41,7 @@ final class SelectionKeyImpl extends AbstractSelectionKey { this.channel = ch; this.selector = sel; - if (ch instanceof SocketChannelImpl) - { - socket = ((SocketChannelImpl)ch).getSocket(); - } - else if (ch instanceof ServerSocketChannelImpl) - { - socket = ((ServerSocketChannelImpl)ch).getSocket(); - } - else - { - // TODO - throw new Error("TODO"); - } + socket = ch.getFD().getSocket(); } public SelectableChannel channel() |