You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/02/05 16:51:54 UTC

[19/27] lucenenet git commit: Lucene.Net.Core..Search.ConstantScoreQuery refactor: Changed from new List() to Collections.EmptyList()

Lucene.Net.Core..Search.ConstantScoreQuery refactor: Changed from new List<T>() to Collections.EmptyList<T>()


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

Branch: refs/heads/api-work
Commit: 6d6df6c9e0a5ab33a938b4fdd62311115b6ab843
Parents: 6c2b8de
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Feb 5 17:50:14 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Feb 5 17:50:14 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Search/ConstantScoreQuery.cs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/6d6df6c9/src/Lucene.Net.Core/Search/ConstantScoreQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Search/ConstantScoreQuery.cs b/src/Lucene.Net.Core/Search/ConstantScoreQuery.cs
index 39cb98c..41f52c3 100644
--- a/src/Lucene.Net.Core/Search/ConstantScoreQuery.cs
+++ b/src/Lucene.Net.Core/Search/ConstantScoreQuery.cs
@@ -366,15 +366,11 @@ namespace Lucene.Net.Search
             {
                 if (outerInstance.m_query != null)
                 {
-                    //LUCENE TO-DO
-                    //return Collections.singletonList(new ChildScorer((Scorer)DocIdSetIterator, "constant"));
                     return new[] { new ChildScorer((Scorer)docIdSetIterator, "constant") };
                 }
                 else
                 {
-                    //LUCENE TO-DO
-                    return new List<ChildScorer>();
-                    //return Collections.emptyList();
+                    return Collections.EmptyList<ChildScorer>();
                 }
             }
         }