summaryrefslogtreecommitdiff
path: root/gnu/java
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2012-03-12 21:11:17 +0200
committerPekka Enberg <penberg@kernel.org>2012-03-14 20:54:46 +0200
commit6cab9bd692ff04528f9497958641ac6c5d06c7ff (patch)
tree58d6ac6971875a235e8606bdd9f0e6d51ddaade2 /gnu/java
parent395870fb6ed423255797fd62a8796d6c1817b23c (diff)
downloadclasspath-6cab9bd692ff04528f9497958641ac6c5d06c7ff.tar.gz
Add missing Java 1.7 AutoCloseable interface
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Diffstat (limited to 'gnu/java')
-rw-r--r--gnu/java/nio/FileLockImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/java/nio/FileLockImpl.java b/gnu/java/nio/FileLockImpl.java
index e714ea358..0c6e4685c 100644
--- a/gnu/java/nio/FileLockImpl.java
+++ b/gnu/java/nio/FileLockImpl.java
@@ -88,6 +88,11 @@ public final class FileLockImpl extends FileLock
return valid;
}
+ public void close() throws Exception
+ {
+ release();
+ }
+
/**
* Releases the lock if it is still valid. Marks this lock as invalid.
*/