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:
Michael Koch 2004-02-26 19:45:51 +00:00 committed by Michael Koch
parent 135d78c600
commit f57db409bc
5 changed files with 30 additions and 12 deletions

View file

@ -53,9 +53,9 @@ public abstract class FileChannel extends AbstractInterruptibleChannel
{
int m;
public static MapMode READ_ONLY = new MapMode(0);
public static MapMode READ_WRITE = new MapMode(1);
public static MapMode PRIVATE = new MapMode(2);
public static final MapMode READ_ONLY = new MapMode(0);
public static final MapMode READ_WRITE = new MapMode(1);
public static final MapMode PRIVATE = new MapMode(2);
/**
* Initializes the MapMode.