mirror of https://github.com/apache/lucene.git
Make variable names more explicit
This commit is contained in:
parent
85d2b4611e
commit
626190d70f
|
@ -303,12 +303,12 @@ public abstract class BaseRangeFieldQueryTestCase extends LuceneTestCase {
|
||||||
assertEquals(docID, docIDToID.nextDoc());
|
assertEquals(docID, docIDToID.nextDoc());
|
||||||
int id = (int) docIDToID.longValue();
|
int id = (int) docIDToID.longValue();
|
||||||
boolean expected;
|
boolean expected;
|
||||||
boolean isDeleted = liveDocs != null && liveDocs.get(docID) == false;
|
boolean docDeleted = liveDocs != null && liveDocs.get(docID) == false;
|
||||||
boolean isMissing = ranges[id][0].isMissing;
|
boolean rangeMissing = ranges[id][0].isMissing;
|
||||||
|
|
||||||
if (isDeleted) {
|
if (docDeleted) {
|
||||||
expected = false;
|
expected = false;
|
||||||
} else if (isMissing) {
|
} else if (rangeMissing) {
|
||||||
expected = false;
|
expected = false;
|
||||||
} else {
|
} else {
|
||||||
expected = expectedResult(queryRange, ranges[id], queryType);
|
expected = expectedResult(queryRange, ranges[id], queryType);
|
||||||
|
@ -332,8 +332,8 @@ public abstract class BaseRangeFieldQueryTestCase extends LuceneTestCase {
|
||||||
b.append(ranges[id][n]);
|
b.append(ranges[id][n]);
|
||||||
}
|
}
|
||||||
b.append("\n queryType=").append(queryType).append("\n");
|
b.append("\n queryType=").append(queryType).append("\n");
|
||||||
b.append(" docDeleted?=").append(isDeleted).append("\n");
|
b.append(" docDeleted?=").append(docDeleted).append("\n");
|
||||||
b.append(" rangeMissing?=").append(isMissing);
|
b.append(" rangeMissing?=").append(rangeMissing);
|
||||||
fail("wrong hit (first of possibly more):\n\n" + b);
|
fail("wrong hit (first of possibly more):\n\n" + b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue