mirror of https://github.com/apache/lucene.git
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:
parent
ae413daeaa
commit
2b3e066518
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue