lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [45/58] [abbrv] lucenenet git commit: Fixed random bug in SearchGroup - replaced SortedSet with TreeSet
Date Thu, 10 Nov 2016 11:47:59 GMT
Fixed random bug in SearchGroup - replaced SortedSet with TreeSet


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

Branch: refs/heads/master
Commit: 7c01e8865290dae7f3367c6e9fb7c00d8d76f8a6
Parents: 4b914b7
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Nov 6 01:39:42 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Nov 8 02:24:57 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Grouping/SearchGroup.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/7c01e886/src/Lucene.Net.Grouping/SearchGroup.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Grouping/SearchGroup.cs b/src/Lucene.Net.Grouping/SearchGroup.cs
index 126e974..a225f3c 100644
--- a/src/Lucene.Net.Grouping/SearchGroup.cs
+++ b/src/Lucene.Net.Grouping/SearchGroup.cs
@@ -206,13 +206,13 @@ namespace Lucene.Net.Search.Grouping
         {
 
             private readonly GroupComparator<T> groupComp;
-            private readonly ISet<MergedGroup<T>> queue;
+            private readonly TreeSet<MergedGroup<T>> queue;
             private readonly IDictionary<T, MergedGroup<T>> groupsSeen;
 
             public GroupMerger(Sort groupSort)
             {
                 groupComp = new GroupComparator<T>(groupSort);
-                queue = new SortedSet<MergedGroup<T>>(groupComp);
+                queue = new TreeSet<MergedGroup<T>>(groupComp);
                 groupsSeen = new HashMap<T, MergedGroup<T>>();
             }
 


Mime
View raw message