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:
Michael McCandless 2012-11-01 23:03:10 +00:00
parent 6af650b43f
commit 31bb796317
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}