lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [03/11] lucenenet git commit: BUG: Lucene.Net.Core.Util.Automaton.SpecialOperations.Reverse(): Return value must be a ValueHashSet<T> because it is used as a dictionary key. This fix makes the TestAgainstBrzozowski test pass.
Date Sat, 25 Mar 2017 06:11:17 GMT
BUG: Lucene.Net.Core.Util.Automaton.SpecialOperations.Reverse(): Return value must be a ValueHashSet<T>
because it is used as a dictionary key. This fix makes the TestAgainstBrzozowski test pass.


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

Branch: refs/heads/api-work
Commit: 2cf03218bfce260195da23730bddf1666b660aab
Parents: 75df575
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Mar 25 02:19:13 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Mar 25 02:19:13 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Automaton/SpecialOperations.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2cf03218/src/Lucene.Net.Core/Util/Automaton/SpecialOperations.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Automaton/SpecialOperations.cs b/src/Lucene.Net.Core/Util/Automaton/SpecialOperations.cs
index ac83546..8fad6e6 100644
--- a/src/Lucene.Net.Core/Util/Automaton/SpecialOperations.cs
+++ b/src/Lucene.Net.Core/Util/Automaton/SpecialOperations.cs
@@ -238,7 +238,7 @@ namespace Lucene.Net.Util.Automaton
             // reverse all edges
             Dictionary<State, HashSet<Transition>> m = new Dictionary<State,
HashSet<Transition>>();
             State[] states = a.GetNumberedStates();
-            HashSet<State> accept = new HashSet<State>();
+            HashSet<State> accept = new ValueHashSet<State>();
             foreach (State s in states)
             {
                 if (s.Accept)


Mime
View raw message