lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [43/46] lucenenet git commit: Fixed "identityHashCode" call in Facet.Taxonomy.TaxonomyFacetSumValueSource.
Date Tue, 04 Oct 2016 20:02:13 GMT
Fixed "identityHashCode" call in Facet.Taxonomy.TaxonomyFacetSumValueSource.


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

Branch: refs/heads/master
Commit: d86688897061bc280a730fe2235a5cb398298ee6
Parents: 49e2503
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Sep 25 23:55:42 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Oct 3 23:32:15 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d8668889/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
index c5e5cb5..a08021c 100644
--- a/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/TaxonomyFacetSumValueSource.cs
@@ -1,6 +1,7 @@
 ´╗┐using System;
 using System.Collections;
 using System.Collections.Generic;
+using System.Runtime.CompilerServices;
 using System.Threading;
 
 namespace Lucene.Net.Facet.Taxonomy
@@ -222,11 +223,9 @@ namespace Lucene.Net.Facet.Taxonomy
 
             public override int GetHashCode()
             {
-                return hcode;
+                return RuntimeHelpers.GetHashCode(this);
             }
 
-            private static readonly int hcode = typeof(DoubleDocValuesAnonymousInnerClassHelper).GetHashCode();
-
             public override string Description
             {
                 get


Mime
View raw message