mirror of https://github.com/apache/lucene.git
make IndexReader.getRefCount() expert and public
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@751241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f32bbf72f
commit
2e2eafd3d2
|
@ -113,9 +113,9 @@ public abstract class IndexReader implements Cloneable {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue