You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by mh...@apache.org on 2013/09/24 20:33:08 UTC

[32/50] [abbrv] git commit: Correct bug preventing search from working

Correct bug preventing search from working


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

Branch: refs/heads/branch_4x
Commit: 37289caa48c5b2887ea15fca8f23efd629bd55ac
Parents: 02797a9
Author: Paul Irwin <pa...@gmail.com>
Authored: Wed Aug 7 09:16:17 2013 -0400
Committer: Paul Irwin <pa...@gmail.com>
Committed: Wed Aug 7 09:16:17 2013 -0400

----------------------------------------------------------------------
 src/core/Index/CompositeReaderContext.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/37289caa/src/core/Index/CompositeReaderContext.cs
----------------------------------------------------------------------
diff --git a/src/core/Index/CompositeReaderContext.cs b/src/core/Index/CompositeReaderContext.cs
index eb965fa..844475e 100644
--- a/src/core/Index/CompositeReaderContext.cs
+++ b/src/core/Index/CompositeReaderContext.cs
@@ -21,7 +21,7 @@ namespace Lucene.Net.Index
          * not top-level readers in the current context
          */
         internal CompositeReaderContext(CompositeReaderContext parent, CompositeReader reader, int ordInParent,
-            int docbaseInParent, List<IndexReaderContext> children)
+            int docbaseInParent, IList<IndexReaderContext> children)
             : this(parent, reader, ordInParent, docbaseInParent, children, null)
         {
         }
@@ -29,7 +29,7 @@ namespace Lucene.Net.Index
         /**
          * Creates a {@link CompositeReaderContext} for top-level readers with parent set to <code>null</code>
          */
-        internal CompositeReaderContext(CompositeReader reader, List<IndexReaderContext> children, List<AtomicReaderContext> leaves)
+        internal CompositeReaderContext(CompositeReader reader, IList<IndexReaderContext> children, IList<AtomicReaderContext> leaves)
             : this(null, reader, 0, 0, children, leaves)
         {
         }
@@ -39,7 +39,7 @@ namespace Lucene.Net.Index
             : base(parent, ordInParent, docbaseInParent)
         {
             this.children = children.ToArray();
-            this.leaves = leaves == null ? null : leaves.ToArray();
+            this.leaves = leaves == null ? null : leaves;
             this.reader = reader;
         }
         
@@ -73,7 +73,7 @@ namespace Lucene.Net.Index
         private class Builder
         {
             private readonly CompositeReader reader;
-            private readonly List<AtomicReaderContext> leaves = new List<AtomicReaderContext>();
+            private readonly IList<AtomicReaderContext> leaves = new List<AtomicReaderContext>();
             private int leafDocBase = 0;
 
             public Builder(CompositeReader reader)