lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [23/50] [abbrv] lucenenet git commit: Lucene.Net.Core.Index.CompositeReaderContext: Changed children constructor parameters from List<T> to IList<T>. Lucene.Net.Core.Index.SegmentInfos: Changed return type of Segements property from List<T> to IList<T>.
Date Tue, 31 Jan 2017 17:55:56 GMT
Lucene.Net.Core.Index.CompositeReaderContext: Changed children constructor parameters from
List<T> to IList<T>. Lucene.Net.Core.Index.SegmentInfos: Changed return type of
Segements property from List<T> to IList<T>.


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

Branch: refs/heads/api-work
Commit: ffa24c2524a337547aa70fede281b62d9a36e3f9
Parents: 029d97d
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Jan 31 14:07:38 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Jan 31 14:07:38 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/CompositeReaderContext.cs | 8 ++++----
 src/Lucene.Net.Core/Index/SegmentInfos.cs           | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ffa24c25/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/CompositeReaderContext.cs b/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
index 34642dc..8013a55 100644
--- a/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
+++ b/src/Lucene.Net.Core/Index/CompositeReaderContext.cs
@@ -39,7 +39,7 @@ namespace Lucene.Net.Index
         /// Creates a <seealso cref="CompositeReaderContext"/> for intermediate readers
that aren't
         /// not top-level readers in the current context
         /// </summary>
-        internal CompositeReaderContext(CompositeReaderContext parent, CompositeReader reader,
int ordInParent, int docbaseInParent, List<IndexReaderContext> children)
+        internal CompositeReaderContext(CompositeReaderContext parent, CompositeReader reader,
int ordInParent, int docbaseInParent, IList<IndexReaderContext> children)
             : this(parent, reader, ordInParent, docbaseInParent, children, null)
         {
         }
@@ -47,15 +47,15 @@ namespace Lucene.Net.Index
         /// <summary>
         /// Creates a <seealso cref="CompositeReaderContext"/> for top-level readers
with parent set to <code>null</code>
         /// </summary>
-        internal CompositeReaderContext(CompositeReader reader, List<IndexReaderContext>
children, IList<AtomicReaderContext> leaves)
+        internal CompositeReaderContext(CompositeReader reader, IList<IndexReaderContext>
children, IList<AtomicReaderContext> leaves)
             : this(null, reader, 0, 0, children, leaves)
         {
         }
 
-        private CompositeReaderContext(CompositeReaderContext parent, CompositeReader reader,
int ordInParent, int docbaseInParent, List<IndexReaderContext> children, IList<AtomicReaderContext>
leaves)
+        private CompositeReaderContext(CompositeReaderContext parent, CompositeReader reader,
int ordInParent, int docbaseInParent, IList<IndexReaderContext> children, IList<AtomicReaderContext>
leaves)
             : base(parent, ordInParent, docbaseInParent)
         {
-            this.children = children.AsReadOnly();
+            this.children = Collections.UnmodifiableList(children);
             this.leaves = leaves;
             this.reader = reader;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ffa24c25/src/Lucene.Net.Core/Index/SegmentInfos.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/SegmentInfos.cs b/src/Lucene.Net.Core/Index/SegmentInfos.cs
index c1da7eb..2d97137 100644
--- a/src/Lucene.Net.Core/Index/SegmentInfos.cs
+++ b/src/Lucene.Net.Core/Index/SegmentInfos.cs
@@ -711,7 +711,7 @@ namespace Lucene.Net.Index
         }
 
         // LUCENENET specific property for accessing segments private field
-        public List<SegmentCommitInfo> Segments
+        public IList<SegmentCommitInfo> Segments
         {
             get { return segments; }
         }


Mime
View raw message