Skip to content

Apache Lucene open-source search software

fix generics warnings

Michael McCandless31bb796317de
diff --git a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java
index c96fba0ce0a..8b0aedf5a44 100644
--- a/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java
+++ b/lucene/core/src/test/org/apache/lucene/util/fst/TestFSTs.java
@@ -1341,7 +1341,7 @@ public class TestFSTs extends LuceneTestCase {
}
assertTrue(matches.size() > 0);
- Collections.sort(matches, new TieBreakByInputComparator(minLongComparator));
+ Collections.sort(matches, new TieBreakByInputComparator<Long>(minLongComparator));
if (matches.size() > topN) {
matches.subList(topN, matches.size()).clear();
}
@@ -1462,7 +1462,7 @@ public class TestFSTs extends LuceneTestCase {
}
assertTrue(matches.size() > 0);
- Collections.sort(matches, new TieBreakByInputComparator(minPairWeightComparator));
+ Collections.sort(matches, new TieBreakByInputComparator<Pair<Long,Long>>(minPairWeightComparator));
if (matches.size() > topN) {
matches.subList(topN, matches.size()).clear();
}