BUG: Lucene.Net.Core.Util.Automaton.RegExp.GetIdentifiers(): We can't make any assumptions how the returned set will be used, so we should return a ValueHashSet that compares set equality.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/1c3dbadf Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/1c3dbadf Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/1c3dbadf Branch: refs/heads/api-work Commit: 1c3dbadf924cb75ab2083015a4bacf646b9087ce Parents: b3940f2 Author: Shad Storhaug <[email protected]> Authored: Sun Mar 26 06:39:09 2017 +0700 Committer: Shad Storhaug <[email protected]> Committed: Sun Mar 26 08:54:09 2017 +0700 ---------------------------------------------------------------------- src/Lucene.Net.Core/Util/Automaton/RegExp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1c3dbadf/src/Lucene.Net.Core/Util/Automaton/RegExp.cs ---------------------------------------------------------------------- diff --git a/src/Lucene.Net.Core/Util/Automaton/RegExp.cs b/src/Lucene.Net.Core/Util/Automaton/RegExp.cs index fc07d45..ced21d5 100644 --- a/src/Lucene.Net.Core/Util/Automaton/RegExp.cs +++ b/src/Lucene.Net.Core/Util/Automaton/RegExp.cs @@ -758,7 +758,7 @@ namespace Lucene.Net.Util.Automaton /// </summary> public virtual ISet<string> GetIdentifiers() { - HashSet<string> set = new HashSet<string>(); + HashSet<string> set = new ValueHashSet<string>(); GetIdentifiers(set); return set; }
