LUCENE-1421: add workaround to unbreak the build

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1103048 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-05-14 11:25:56 +00:00
parent ae413daeaa
commit 2b3e066518
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,9 @@ public class FirstPassGroupingCollector extends Collector {
// We already tested that the document is competitive, so replace
// the bottom group with this new group.
final CollectedSearchGroup bottomGroup = orderedGroups.pollLast();
// java 6-only: final CollectedSearchGroup bottomGroup = orderedGroups.pollLast();
final CollectedSearchGroup bottomGroup = orderedGroups.last();
orderedGroups.remove(bottomGroup);
assert orderedGroups.size() == topNGroups -1;
groupMap.remove(bottomGroup.groupValue);