lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [12/50] lucenenet git commit: Lucene.Net.Queries.TermsFilter: renamed private field
Date Thu, 30 Mar 2017 18:00:07 GMT
Lucene.Net.Queries.TermsFilter: renamed private field


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

Branch: refs/heads/api-work
Commit: e0318a494153b3ca664d1f87e70e2c9cb3ab591e
Parents: cf3c6ec
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Mar 29 21:42:23 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Mar 30 09:12:30 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Queries/TermsFilter.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e0318a49/src/Lucene.Net.Queries/TermsFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/TermsFilter.cs b/src/Lucene.Net.Queries/TermsFilter.cs
index 3a04993..705e441 100644
--- a/src/Lucene.Net.Queries/TermsFilter.cs
+++ b/src/Lucene.Net.Queries/TermsFilter.cs
@@ -48,7 +48,7 @@ namespace Lucene.Net.Queries
         private readonly int[] offsets;
         private readonly byte[] termsBytes;
         private readonly TermsAndField[] termsAndFields;
-        private readonly int hashCode_Renamed; // cached hashcode for fast cache lookups
+        private readonly int hashCode; // cached hashcode for fast cache lookups
         private const int PRIME = 31;
 
         /// <summary>
@@ -214,7 +214,7 @@ namespace Lucene.Net.Queries
             termsAndFields.Add(lastTermsAndField);
             this.termsBytes = ArrayUtil.Shrink(serializedTerms, lastEndOffset);
             this.termsAndFields = termsAndFields.ToArray();
-            this.hashCode_Renamed = hash;
+            this.hashCode = hash;
         }
 
         public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
@@ -275,7 +275,7 @@ namespace Lucene.Net.Queries
 
             var test = (TermsFilter)obj;
             // first check the fields before even comparing the bytes
-            if (test.hashCode_Renamed == hashCode_Renamed && Arrays.Equals(termsAndFields,
test.termsAndFields))
+            if (test.hashCode == hashCode && Arrays.Equals(termsAndFields, test.termsAndFields))
             {
                 int lastOffset = termsAndFields[termsAndFields.Length - 1].end;
                 // compare offsets since we sort they must be identical
@@ -290,7 +290,7 @@ namespace Lucene.Net.Queries
 
         public override int GetHashCode()
         {
-            return hashCode_Renamed;
+            return hashCode;
         }
 
         public override string ToString()


Mime
View raw message