I'm working on a BooleanQuery subclass for a contract job, and when using JUnit to compare an expected query with an actual query it was failing even though the queries (clauses and boost) were all identical.

Instead of using == in BooleanQuery.equals to compare the clause array, it should be Arrays.equals(this.getClauses(), other.getClauses()). Arrays.equals is a JDK 1.2+ method. Any objections to switching BooleanQuery's .equals implementation accordingly?

        Erik


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to