lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [19/27] lucenenet git commit: Lucene.Net.Core..Search.ConstantScoreQuery refactor: Changed from new List<T>() to Collections.EmptyList<T>()
Date Sun, 05 Feb 2017 16:51:54 GMT
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 <shad@shadstorhaug.com>
Authored: Sun Feb 5 17:50:14 2017 +0700
Committer: Shad Storhaug <shad@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>();
                 }
             }
         }


Mime
View raw message