lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [32/50] [abbrv] lucenenet git commit: Lucene.Net.Queries.CommonTermsQuery: Removed check for null on highFreqOccur and lowFreqOccur, since enumerations cannot be null in .NET
Date Wed, 25 Jan 2017 03:44:16 GMT
Lucene.Net.Queries.CommonTermsQuery: Removed check for null on highFreqOccur and lowFreqOccur,
since enumerations cannot be null in .NET


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

Branch: refs/heads/api-work
Commit: 994233c108c2d81e5ed853d326606c04dee0dea9
Parents: 3980448
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Jan 25 06:48:39 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Jan 25 09:34:48 2017 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/994233c1/src/Lucene.Net.Queries/CommonTermsQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/CommonTermsQuery.cs b/src/Lucene.Net.Queries/CommonTermsQuery.cs
index 70781b8..892f936 100644
--- a/src/Lucene.Net.Queries/CommonTermsQuery.cs
+++ b/src/Lucene.Net.Queries/CommonTermsQuery.cs
@@ -389,9 +389,9 @@ namespace Lucene.Net.Queries
             int result = base.GetHashCode();
             result = prime * result + (disableCoord ? 1231 : 1237);
             result = prime * result + Number.FloatToIntBits(highFreqBoost);
-            result = prime * result + ((highFreqOccur == null) ? 0 : highFreqOccur.GetHashCode());
+            result = prime * result + /*((highFreqOccur == null) ? 0 :*/ highFreqOccur.GetHashCode()/*)*/;
             result = prime * result + Number.FloatToIntBits(lowFreqBoost);
-            result = prime * result + ((lowFreqOccur == null) ? 0 : lowFreqOccur.GetHashCode());
+            result = prime * result + /*((lowFreqOccur == null) ? 0 :*/ lowFreqOccur.GetHashCode()/*)*/;
             result = prime * result + Number.FloatToIntBits(maxTermFrequency);
             result = prime * result + Number.FloatToIntBits(LowFreqMinimumNumberShouldMatch);
             result = prime * result + Number.FloatToIntBits(HighFreqMinimumNumberShouldMatch);


Mime
View raw message