lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r831662 - in /lucene/java/trunk/src/java/org/apache/lucene/store: Lock.java VerifyingLockFactory.java
Date Sun, 01 Nov 2009 10:12:11 GMT
Author: mikemccand
Date: Sun Nov  1 10:12:11 2009
New Revision: 831662

URL: http://svn.apache.org/viewvc?rev=831662&view=rev
Log:
allow Lock.isLocked to throw IOException

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/Lock.java
    lucene/java/trunk/src/java/org/apache/lucene/store/VerifyingLockFactory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/Lock.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/Lock.java?rev=831662&r1=831661&r2=831662&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/Lock.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/Lock.java Sun Nov  1 10:12:11 2009
@@ -104,7 +104,7 @@
 
   /** 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. */

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/VerifyingLockFactory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/VerifyingLockFactory.java?rev=831662&r1=831661&r2=831662&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/VerifyingLockFactory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/VerifyingLockFactory.java Sun Nov 
1 10:12:11 2009
@@ -84,7 +84,7 @@
     }
 
     @Override
-    public synchronized boolean isLocked() {
+    public synchronized boolean isLocked() throws IOException {
       return lock.isLocked();
     }
 



Mime
View raw message