lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r178149 - /lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNearQuery.java
Date Tue, 24 May 2005 10:15:26 GMT
Author: ehatcher
Date: Tue May 24 03:15:23 2005
New Revision: 178149

URL: http://svn.apache.org/viewcvs?rev=178149&view=rev
Log:
adjust hashCode based on feedback from Paul Elschot

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNearQuery.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNearQuery.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNearQuery.java?rev=178149&r1=178148&r2=178149&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNearQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/spans/SpanNearQuery.java Tue May 24
03:15:23 2005
@@ -128,9 +128,9 @@
   public int hashCode() {
     int result;
     result = clauses.hashCode();
-    result = 29 * result + slop;
-    result = 29 * result + (inOrder ? 1 : 0);
-    result = 29 * result + field.hashCode();
+    result += slop * 29;
+    result +=  (inOrder ? 1 : 0);
+    result ^= field.hashCode();
     return result;
   }
 }



Mime
View raw message