aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-01-23 15:53:51 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2004-01-23 15:53:51 +0000
commit69f2de23b2401a6602271262a103270a81d5f175 (patch)
treea9b5ce84341afc12d7d5b14d8d40a27a643e00be /libjava
parent0791cb20bcfa9b0b87487557be3de9b37e844f09 (diff)
downloadgcc-69f2de23b2401a6602271262a103270a81d5f175.zip
gcc-69f2de23b2401a6602271262a103270a81d5f175.tar.gz
gcc-69f2de23b2401a6602271262a103270a81d5f175.tar.bz2
FileLockImpl.java: Compile fixes.
2004-01-23 Michael Koch <konqueror@gmx.de> * gnu/java/nio/FileLockImpl.java: Compile fixes. From-SVN: r76427
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/gnu/java/nio/FileLockImpl.java4
2 files changed, 5 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 49a0ae5..d9b9a35 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,9 @@
2004-01-23 Michael Koch <konqueror@gmx.de>
+ * gnu/java/nio/FileLockImpl.java: Compile fixes.
+
+2004-01-23 Michael Koch <konqueror@gmx.de>
+
* java/lang/VMClassLoader.java: Reworked imports.
2004-01-23 Michael Koch <konqueror@gmx.de>
diff --git a/libjava/gnu/java/nio/FileLockImpl.java b/libjava/gnu/java/nio/FileLockImpl.java
index b621bd2..9384bf6 100644
--- a/libjava/gnu/java/nio/FileLockImpl.java
+++ b/libjava/gnu/java/nio/FileLockImpl.java
@@ -82,8 +82,7 @@ public class FileLockImpl extends FileLock
public boolean isValid ()
{
- return (released
- || !channel ().isOpen ());
+ return !channel().isOpen();
}
private native void releaseImpl () throws IOException;
@@ -91,6 +90,5 @@ public class FileLockImpl extends FileLock
public synchronized void release () throws IOException
{
releaseImpl ();
- released = true;
}
}