FileLockImpl.java: Compile fixes.

2004-01-23  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/FileLockImpl.java: Compile fixes.

From-SVN: r76427
This commit is contained in:
Michael Koch 2004-01-23 15:53:51 +00:00 committed by Michael Koch
parent 0791cb20bc
commit 69f2de23b2
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-01-23 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileLockImpl.java: Compile fixes.
2004-01-23 Michael Koch <konqueror@gmx.de> 2004-01-23 Michael Koch <konqueror@gmx.de>
* java/lang/VMClassLoader.java: Reworked imports. * java/lang/VMClassLoader.java: Reworked imports.

View File

@ -82,8 +82,7 @@ public class FileLockImpl extends FileLock
public boolean isValid () public boolean isValid ()
{ {
return (released return !channel().isOpen();
|| !channel ().isOpen ());
} }
private native void releaseImpl () throws IOException; private native void releaseImpl () throws IOException;
@ -91,6 +90,5 @@ public class FileLockImpl extends FileLock
public synchronized void release () throws IOException public synchronized void release () throws IOException
{ {
releaseImpl (); releaseImpl ();
released = true;
} }
} }