Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0FFB8200C47 for ; Thu, 30 Mar 2017 19:59:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0E9E1160BA1; Thu, 30 Mar 2017 17:59:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 28174160BA6 for ; Thu, 30 Mar 2017 19:59:57 +0200 (CEST) Received: (qmail 76139 invoked by uid 500); 30 Mar 2017 17:59:57 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 75331 invoked by uid 99); 30 Mar 2017 17:59:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Mar 2017 17:59:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 99448E8E71; Thu, 30 Mar 2017 17:59:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Date: Thu, 30 Mar 2017 18:00:11 -0000 Message-Id: <202f2b4098d244c18a81d059da0d66ac@git.apache.org> In-Reply-To: <7bf010e5f2ed4d0894637666d0575d94@git.apache.org> References: <7bf010e5f2ed4d0894637666d0575d94@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [16/50] lucenenet git commit: Lucene.Net.QueryParser.Flexibl.Standard.Config.NumericConfig: Factored out HashHelpers.CombineHashCodes archived-at: Thu, 30 Mar 2017 17:59:59 -0000 Lucene.Net.QueryParser.Flexibl.Standard.Config.NumericConfig: Factored out HashHelpers.CombineHashCodes Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a701b994 Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a701b994 Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a701b994 Branch: refs/heads/api-work Commit: a701b9941fe36e22664e0117292f2a3ed1eb3dd0 Parents: 1a251a1 Author: Shad Storhaug Authored: Thu Mar 30 08:11:41 2017 +0700 Committer: Shad Storhaug Committed: Thu Mar 30 09:12:31 2017 +0700 ---------------------------------------------------------------------- .../Flexible/Standard/Config/NumericConfig.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a701b994/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs index 913904a..13d5938 100644 --- a/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs +++ b/src/Lucene.Net.QueryParser/Flexible/Standard/Config/NumericConfig.cs @@ -115,11 +115,12 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard.Config /// public override int GetHashCode() { - return HashHelpers.CombineHashCodes( - base.GetHashCode(), - this.precisionStep.GetHashCode(), - this.type.GetHashCode(), - this.format.GetHashCode()); + const int prime = 31; + int result = base.GetHashCode(); + result = prime * result + this.precisionStep.GetHashCode(); + result = prime * result + this.type.GetHashCode(); + result = prime * result + this.format.GetHashCode(); + return result; } } }