Repository: lucenenet Updated Branches: refs/heads/api-work d0d6c7e05 -> a02dd137d
Lucene.Net.Core.Util.Automaton.Automaton: Removed dependency on HashHelpers.CombineHashCodes() Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a4a5f1cc Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a4a5f1cc Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a4a5f1cc Branch: refs/heads/api-work Commit: a4a5f1ccbeb200db6785c90cda238b781e3a78dd Parents: 174e221 Author: Shad Storhaug <[email protected]> Authored: Wed Mar 29 19:41:12 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Thu Mar 30 09:12:27 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Core/Util/Automaton/Automaton.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a4a5f1cc/src/Lucene.Net.Core/Util/Automaton/Automaton.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Util/Automaton/Automaton.cs b/src/Lucene.Net.Core/Util/Automaton/Automaton.cs index 5238672..dc32efb 100644 --- a/src/Lucene.Net.Core/Util/Automaton/Automaton.cs +++ b/src/Lucene.Net.Core/Util/Automaton/Automaton.cs @@ -669,7 +669,7 @@ namespace Lucene.Net.Util.Automaton { current = worklist.First.Value; worklist.Remove(current); - hash = HashHelpers.CombineHashCodes(hash, current.accept.GetHashCode()); + hash = 31 * hash + current.accept.GetHashCode(); Transition[] t1 = transitions[current.number]; @@ -677,8 +677,8 @@ namespace Lucene.Net.Util.Automaton { int min1 = t1[n1].min, max1 = t1[n1].max; - hash = HashHelpers.CombineHashCodes(hash, min1.GetHashCode()); - hash = HashHelpers.CombineHashCodes(hash, max1.GetHashCode()); + hash = 31 * hash + min1.GetHashCode(); + hash = 31 * hash + max1.GetHashCode(); State next = t1[n1].to; if (!visited.Contains(next))
