lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r751241 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
Date Sat, 07 Mar 2009 10:47:44 GMT
Author: mikemccand
Date: Sat Mar  7 10:47:44 2009
New Revision: 751241

URL: http://svn.apache.org/viewvc?rev=751241&view=rev
Log:
make IndexReader.getRefCount() expert and public

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java?rev=751241&r1=751240&r2=751241&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java Sat Mar  7 10:47:44
2009
@@ -113,9 +113,9 @@
   protected boolean hasChanges;
   
   private volatile int refCount;
-  
-  // for testing
-  synchronized int getRefCount() {
+
+  /** Expert: returns the current refCount for this reader */
+  public synchronized int getRefCount() {
     return refCount;
   }
   



Mime
View raw message