Correct BooleanQuery.equals such that every clause is compared

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158016 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-03-18 03:29:16 +00:00
parent 09b58de1db
commit f14428eef4
1 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,8 @@ package org.apache.lucene.search;
import java.io.IOException;
import java.util.Vector;
import java.util.Arrays;
import org.apache.lucene.index.IndexReader;
/** A Query that matches documents matching boolean combinations of other
@ -403,7 +405,7 @@ public class BooleanQuery extends Query {
return false;
BooleanQuery other = (BooleanQuery)o;
return (this.getBoost() == other.getBoost())
&& this.clauses.equals(other.clauses);
&& Arrays.equals(this.getClauses(), other.getClauses());
}
/** Returns a hash code value for this object.*/