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/01/31 17:55:49 UTC
[16/50] [abbrv] lucenenet git commit:
Lucene.Net.Core.Support.Compatibility.Collections: Changed EmtyList to
return Enumerable.Empty rather than ImmutableList.Empty
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 <sh...@shadstorhaug.com>
Authored: Tue Jan 31 13:02:36 2017 +0700
Committer: Shad Storhaug <sh...@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>()