Skip to content

Commit 15651f4

Browse files
committed
Remove unnecessary copy of filterWrappers
1 parent 510b0ed commit 15651f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/search/aggregations/bucket/filter/FiltersAggregator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ private final class MultiFilterCompetitiveLeafCollector extends AbstractLeafColl
469469
) {
470470
super(sub, numFilters, totalNumKeys, true, hasOtherBucket);
471471
assert filterWrappers.isEmpty() == false;
472-
disjunctionDisi = DisjunctionDISIApproximation.of(List.copyOf(filterWrappers), Long.MAX_VALUE);
472+
disjunctionDisi = DisjunctionDISIApproximation.of(filterWrappers, Long.MAX_VALUE);
473473
}
474474

475475
public void collect(int doc, long bucket) throws IOException {

0 commit comments

Comments
 (0)