allow Lock.isLocked to throw IOException

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@831662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-11-01 10:12:11 +00:00
parent a51d0ac267
commit 15bda7eb1a
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ public abstract class Lock {
/** Returns true if the resource is currently locked. Note that one must /** Returns true if the resource is currently locked. Note that one must
* still call {@link #obtain()} before using the resource. */ * still call {@link #obtain()} before using the resource. */
public abstract boolean isLocked(); public abstract boolean isLocked() throws IOException;
/** Utility class for executing code with exclusive access. */ /** Utility class for executing code with exclusive access. */

View File

@ -84,7 +84,7 @@ public class VerifyingLockFactory extends LockFactory {
} }
@Override @Override
public synchronized boolean isLocked() { public synchronized boolean isLocked() throws IOException {
return lock.isLocked(); return lock.isLocked();
} }