You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/01/25 03:44:16 UTC
[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
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 <sh...@shadstorhaug.com>
Authored: Wed Jan 25 06:48:39 2017 +0700
Committer: Shad Storhaug <sh...@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);