From 626190d70f41e6c43485752a5414bfe65c8a74e8 Mon Sep 17 00:00:00 2001 From: Tim Grein Date: Sun, 19 May 2024 13:18:47 +0200 Subject: [PATCH] Make variable names more explicit --- .../tests/search/BaseRangeFieldQueryTestCase.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lucene/test-framework/src/java/org/apache/lucene/tests/search/BaseRangeFieldQueryTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/tests/search/BaseRangeFieldQueryTestCase.java index 00b2eb57db2..2995d986789 100644 --- a/lucene/test-framework/src/java/org/apache/lucene/tests/search/BaseRangeFieldQueryTestCase.java +++ b/lucene/test-framework/src/java/org/apache/lucene/tests/search/BaseRangeFieldQueryTestCase.java @@ -303,12 +303,12 @@ public abstract class BaseRangeFieldQueryTestCase extends LuceneTestCase { assertEquals(docID, docIDToID.nextDoc()); int id = (int) docIDToID.longValue(); boolean expected; - boolean isDeleted = liveDocs != null && liveDocs.get(docID) == false; - boolean isMissing = ranges[id][0].isMissing; + boolean docDeleted = liveDocs != null && liveDocs.get(docID) == false; + boolean rangeMissing = ranges[id][0].isMissing; - if (isDeleted) { + if (docDeleted) { expected = false; - } else if (isMissing) { + } else if (rangeMissing) { expected = false; } else { expected = expectedResult(queryRange, ranges[id], queryType); @@ -332,8 +332,8 @@ public abstract class BaseRangeFieldQueryTestCase extends LuceneTestCase { b.append(ranges[id][n]); } b.append("\n queryType=").append(queryType).append("\n"); - b.append(" docDeleted?=").append(isDeleted).append("\n"); - b.append(" rangeMissing?=").append(isMissing); + b.append(" docDeleted?=").append(docDeleted).append("\n"); + b.append(" rangeMissing?=").append(rangeMissing); fail("wrong hit (first of possibly more):\n\n" + b); } }