lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-76) DisjunctionMaxQuery has unnecessary clone which causes it to fail unit tests
Date Thu, 16 Aug 2007 13:33:33 GMT
DisjunctionMaxQuery has unnecessary clone which causes it to fail unit tests
----------------------------------------------------------------------------

                 Key: LUCENENET-76
                 URL: https://issues.apache.org/jira/browse/LUCENENET-76
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Jeff
            Priority: Minor


DisjunctionMaxQuery.Clone() clones the DisjunctionMaxQuery then the disjuncts arraylist. When
cloning the disjuncts arraylist it causes the unit tests to fail. disjuncts are cloned with
cloning the query, so this is not needed.

public override System.Object Clone()
{
	DisjunctionMaxQuery clone = (DisjunctionMaxQuery) base.Clone();
	//clone.disjuncts = (System.Collections.ArrayList) this.disjuncts.Clone();
	return clone;
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message