mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-26 05:15:51 +00:00
2004-02-26 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileLockImpl.java (finalize): Made protected. * java/nio/channels/FileChannel.java (MapMode.READ_ONLY): Made final. (MapMode.READ_WRITE): Made final. (MapMode.PRIVATE): Made final. * java/nio/channels/SocketChannel.java (open): Simplified code. * java/nio/channels/spi/AbstractSelectableChannel.java (registered): Unused, removed. (keyFor): Check channel is open, only locate key and not add a new one. (register): Don't delete attachments. From-SVN: r78519
This commit is contained in:
committed by
Michael Koch
parent
135d78c600
commit
f57db409bc
@@ -87,11 +87,7 @@ abstract public class SocketChannel extends AbstractSelectableChannel
|
||||
public static SocketChannel open (SocketAddress remote) throws IOException
|
||||
{
|
||||
SocketChannel ch = open ();
|
||||
|
||||
if (ch.connect (remote))
|
||||
{
|
||||
}
|
||||
|
||||
ch.connect(remote);
|
||||
return ch;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user