mirror of https://github.com/apache/lucene.git
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:
parent
a51d0ac267
commit
15bda7eb1a
|
@ -104,7 +104,7 @@ public abstract class Lock {
|
|||
|
||||
/** Returns true if the resource is currently locked. Note that one must
|
||||
* 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. */
|
||||
|
|
|
@ -84,7 +84,7 @@ public class VerifyingLockFactory extends LockFactory {
|
|||
}
|
||||
|
||||
@Override
|
||||
public synchronized boolean isLocked() {
|
||||
public synchronized boolean isLocked() throws IOException {
|
||||
return lock.isLocked();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue