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(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>(minPairWeightComparator)); if (matches.size() > topN) { matches.subList(topN, matches.size()).clear(); }