lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [16/50] [abbrv] lucenenet git commit: Lucene.Net.Core.Support.Compatibility.Collections: Changed EmtyList<T> to return Enumerable.Empty<T> rather than ImmutableList<T>.Empty
Date Tue, 31 Jan 2017 17:55:49 GMT
Lucene.Net.Core.Support.Compatibility.Collections: Changed EmtyList<T> to return Enumerable.Empty<T>
rather than ImmutableList<T>.Empty


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

Branch: refs/heads/api-work
Commit: e37f9196206e557420fcd946c11deef5435538b3
Parents: 3d57305
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Jan 31 13:02:36 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Jan 31 13:02:36 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Support/Compatibility/Collections.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e37f9196/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Support/Compatibility/Collections.cs b/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
index d0ba71d..90fe920 100644
--- a/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
+++ b/src/Lucene.Net.Core/Support/Compatibility/Collections.cs
@@ -23,7 +23,7 @@ namespace Lucene.Net
 
         public static IList<T> EmptyList<T>()
         {
-            return ImmutableList<T>.Empty; // LUCENENET TODO: Shouldn't be Immutable
+            return (IList<T>)Enumerable.Empty<T>();
         }
 
         public static IDictionary<TKey, TValue> EmptyMap<TKey, TValue>()


Mime
View raw message