Apache Lucene open-source search software
LUCENE-10507: Fix test failure.
Adrien Grandadcf58fe8751
diff --git a/lucene/core/src/test/org/apache/lucene/search/TestElevationComparator.java b/lucene/core/src/test/org/apache/lucene/search/TestElevationComparator.javaindex b1625dd488f..f39cc095a1f 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestElevationComparator.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestElevationComparator.java@@ -197,8 +197,14 @@ class ElevationComparatorSource extends FieldComparatorSource {@Overridepublic int compare(int slot1, int slot2) {- return values[slot2]- - values[slot1]; // values will be small enough that there is no overflow concern+ // values will be small enough that there is no overflow concern+ return values[slot2] - values[slot1];+ }++ @Override+ public int compareValues(Integer first, Integer second) {+ // values will be small enough that there is no overflow concern+ return second - first;}@Override