diff options
author | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-19 09:10:39 +0000 |
---|---|---|
committer | mkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-19 09:10:39 +0000 |
commit | ddcd80d02a9fb28b59ab434f183126fde293a052 (patch) | |
tree | 8ba67b5181aa582245424ab74baaad9a90b172a3 /libjava/gnu/java | |
parent | aadd417cc200bf33f79549c82e422a33f09af6f7 (diff) | |
download | gcc-ddcd80d02a9fb28b59ab434f183126fde293a052.tar.gz |
2005-02-19 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/SelectorImpl.java:
Reworked import statements.
(register): Removed unused code.
* java/nio/channels/Channels.java: Reformatted.
* java/nio/charset/Charset.java: Likewise.
* java/rmi/server/RemoteObject.java
(serialVersionUID): Made private.
* java/rmi/server/UID.java
(serialVersionUID): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95273 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu/java')
-rw-r--r-- | libjava/gnu/java/nio/SelectorImpl.java | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/libjava/gnu/java/nio/SelectorImpl.java b/libjava/gnu/java/nio/SelectorImpl.java index 62d06624616..f64c86d1f54 100644 --- a/libjava/gnu/java/nio/SelectorImpl.java +++ b/libjava/gnu/java/nio/SelectorImpl.java @@ -1,5 +1,5 @@ /* SelectorImpl.java -- - Copyright (C) 2002, 2003 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -35,6 +35,7 @@ this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ + package gnu.java.nio; import java.io.IOException; @@ -49,11 +50,9 @@ import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.Set; -import gnu.classpath.Configuration; public class SelectorImpl extends AbstractSelector { - private Set keys; private Set selected; @@ -375,24 +374,13 @@ public class SelectorImpl extends AbstractSelector SelectionKeyImpl result; if (ch instanceof SocketChannelImpl) - { - SocketChannelImpl sc = (SocketChannelImpl) ch; - result = new SocketChannelSelectionKey (ch, this); - } + result = new SocketChannelSelectionKey (ch, this); else if (ch instanceof DatagramChannelImpl) - { - DatagramChannelImpl dc = (DatagramChannelImpl) ch; - result = new DatagramChannelSelectionKey (ch, this); - } + result = new DatagramChannelSelectionKey (ch, this); else if (ch instanceof ServerSocketChannelImpl) - { - ServerSocketChannelImpl ssc = (ServerSocketChannelImpl) ch; - result = new ServerSocketChannelSelectionKey (ch, this); - } + result = new ServerSocketChannelSelectionKey (ch, this); else - { - throw new InternalError ("No known channel type"); - } + throw new InternalError ("No known channel type"); synchronized (keys) { |