lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulir...@apache.org
Subject [1/3] git commit: corrections for iterator
Date Wed, 26 Feb 2014 18:32:31 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/branch_4x 4865dce05 -> 20a8af9a6


corrections for iterator


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

Branch: refs/heads/branch_4x
Commit: a9f2a647eacae036fbaa7a96da8ea2b4783b404d
Parents: 4aaa7a4
Author: Mike Potts <mike@feature23.com>
Authored: Mon Feb 10 22:11:05 2014 -0500
Committer: Mike Potts <mike@feature23.com>
Committed: Mon Feb 10 22:11:05 2014 -0500

----------------------------------------------------------------------
 src/core/Codecs/BlockTreeTermsReader.cs             | 2 +-
 src/core/Util/Packed/AbstractAppendingLongBuffer.cs | 2 +-
 src/core/Util/Packed/AppendingLongBuffer.cs         | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a9f2a647/src/core/Codecs/BlockTreeTermsReader.cs
----------------------------------------------------------------------
diff --git a/src/core/Codecs/BlockTreeTermsReader.cs b/src/core/Codecs/BlockTreeTermsReader.cs
index dd73e3d..21e832d 100644
--- a/src/core/Codecs/BlockTreeTermsReader.cs
+++ b/src/core/Codecs/BlockTreeTermsReader.cs
@@ -2540,7 +2540,7 @@ namespace Lucene.Net.Codecs
                         {
                             floorData = new byte[ArrayUtil.Oversize(numBytes, 1)];
                         }
-                        Array.Copy(source.bytes, source.offset + input.Position, floorData,
0, numBytes);
+                        System.Buffer.BlockCopy(source.bytes, source.offset + input.Position,
floorData, 0, numBytes);
                         floorDataReader.Reset(floorData, 0, numBytes);
                         numFollowFloorBlocks = floorDataReader.ReadVInt();
                         nextFloorLabel = floorDataReader.ReadByte() & 0xff;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a9f2a647/src/core/Util/Packed/AbstractAppendingLongBuffer.cs
----------------------------------------------------------------------
diff --git a/src/core/Util/Packed/AbstractAppendingLongBuffer.cs b/src/core/Util/Packed/AbstractAppendingLongBuffer.cs
index 01b6b43..50402d8 100644
--- a/src/core/Util/Packed/AbstractAppendingLongBuffer.cs
+++ b/src/core/Util/Packed/AbstractAppendingLongBuffer.cs
@@ -81,7 +81,7 @@ namespace Lucene.Net.Util.Packed
         
         public abstract class Iterator
         {
-            private readonly AbstractAppendingLongBuffer parent;
+            protected readonly AbstractAppendingLongBuffer parent;
             internal long[] currentValues;
             internal int vOff, pOff;
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a9f2a647/src/core/Util/Packed/AppendingLongBuffer.cs
----------------------------------------------------------------------
diff --git a/src/core/Util/Packed/AppendingLongBuffer.cs b/src/core/Util/Packed/AppendingLongBuffer.cs
index 86f0d89..9c5cb9e 100644
--- a/src/core/Util/Packed/AppendingLongBuffer.cs
+++ b/src/core/Util/Packed/AppendingLongBuffer.cs
@@ -68,12 +68,12 @@ namespace Lucene.Net.Util.Packed
 
         public sealed class Iterator : AbstractAppendingLongBuffer.Iterator
         {
-            private readonly AppendingLongBuffer parent;
+            //private readonly AppendingLongBuffer parent;
 
             internal Iterator(AppendingLongBuffer parent)
                 : base(parent)
             {
-                this.parent = parent;
+                //this.parent = parent;
             }
 
             internal override void FillValues()


Mime
View raw message