lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [02/50] lucenenet git commit: Lucene.Net.Spatial.Prefix.IntersectsPrefixTreeFilter: Removed dependency on HashHelpers.CombineHashCodes()
Date Thu, 30 Mar 2017 17:59:57 GMT
Lucene.Net.Spatial.Prefix.IntersectsPrefixTreeFilter: Removed dependency on HashHelpers.CombineHashCodes()


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/174e2217
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/174e2217
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/174e2217

Branch: refs/heads/api-work
Commit: 174e22178743c6d952ab7e14903815d20ae7cd97
Parents: 44bba1b
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Mar 29 19:28:44 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 30 09:12:27 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Spatial/Prefix/IntersectsPrefixTreeFilter.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/174e2217/src/Lucene.Net.Spatial/Prefix/IntersectsPrefixTreeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Prefix/IntersectsPrefixTreeFilter.cs b/src/Lucene.Net.Spatial/Prefix/IntersectsPrefixTreeFilter.cs
index fe449a7..0287eaa 100644
--- a/src/Lucene.Net.Spatial/Prefix/IntersectsPrefixTreeFilter.cs
+++ b/src/Lucene.Net.Spatial/Prefix/IntersectsPrefixTreeFilter.cs
@@ -54,7 +54,9 @@ namespace Lucene.Net.Spatial.Prefix
         /// </summary>
         public override int GetHashCode()
         {
-            return HashHelpers.CombineHashCodes(base.GetHashCode(), hasIndexedLeaves.GetHashCode());
+            int h = base.GetHashCode();
+            h ^= hasIndexedLeaves.GetHashCode(); // reversible
+            return h;
         }
 
         /// <exception cref="System.IO.IOException"></exception>


Mime
View raw message