mirror of https://github.com/apache/lucene.git
fix generics warnings
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1404822 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6af650b43f
commit
31bb796317
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue