lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mharw...@apache.org
Subject svn commit: r583305 - /lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java
Date Tue, 09 Oct 2007 21:40:46 GMT
Author: mharwood
Date: Tue Oct  9 14:40:45 2007
New Revision: 583305

URL: http://svn.apache.org/viewvc?rev=583305&view=rev
Log:
Updated hashcode/equals to test all fields

Modified:
    lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java

Modified: lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java?rev=583305&r1=583304&r2=583305&view=diff
==============================================================================
--- lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java
(original)
+++ lucene/java/trunk/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java
Tue Oct  9 14:40:45 2007
@@ -215,6 +215,7 @@
 			return false;
 		DuplicateFilter other = (DuplicateFilter)obj;
 		return keepMode == other.keepMode &&
+		processingMode == other.processingMode &&
 			(fieldName == other.fieldName || (fieldName != null && fieldName.equals(other.fieldName)));
 	}
 
@@ -224,6 +225,7 @@
 	{
 		int hash = 217;
 		hash = 31 * hash + keepMode;
+		hash = 31 * hash + processingMode;
 		hash = 31 * hash + fieldName.hashCode();
 		return hash;	
 	}



Mime
View raw message