Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2007-07-20 13:17:25 +0400
committerjfrijters <jfrijters>2007-07-20 13:17:25 +0400
commit10a9e24f6787b08c62e8c83b75691227d874f2a7 (patch)
treeba4d5f48c4db41802eeef2a2dd286e56d180e6b4 /openjdk/sun/nio/ch/SelectionKeyImpl.java
parent8401761ae0903bbf1807526bc65be8b129e89458 (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.java14
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()