LUCENE-1553: fix test-only method addMyself to keep track of more than 1 ConcurrentMergeScheduler created during tests

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-03-05 09:54:07 +00:00
parent cf28799cb0
commit ebb8c8ec3d
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
/** Used for testing */ /** Used for testing */
private void addMyself() { private void addMyself() {
synchronized(allInstances) { synchronized(allInstances) {
final int size=0; final int size = allInstances.size();
int upto = 0; int upto = 0;
for(int i=0;i<size;i++) { for(int i=0;i<size;i++) {
final ConcurrentMergeScheduler other = (ConcurrentMergeScheduler) allInstances.get(i); final ConcurrentMergeScheduler other = (ConcurrentMergeScheduler) allInstances.get(i);