LUCENE-6570: Remove controversial defensive cloning of queries when adding them to a BooleanQuery.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1686408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-06-19 13:20:47 +00:00
parent 954957c987
commit 2a1bab86b9
1 changed files with 0 additions and 1 deletions

View File

@ -122,7 +122,6 @@ public class BooleanQuery extends Query implements Iterable<BooleanClause> {
if (clauses.size() >= maxClauseCount) {
throw new TooManyClauses();
}
query = query.clone(); // be defensive
clauses.add(new BooleanClause(query, occur));
return this;
}