lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [08/38] lucenenet git commit: API: Lucene.Net.Util.OfflineSorter: Changed setter of BufferSize to private (was not settable in Lucene)
Date Thu, 22 Jun 2017 05:25:09 GMT
API: Lucene.Net.Util.OfflineSorter: Changed setter of BufferSize to private (was not settable
in Lucene)


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

Branch: refs/heads/master
Commit: c29ca08b308cf7caa433447308fdf8d5780d8708
Parents: d683f0f
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Jun 17 13:21:45 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Jun 17 13:21:45 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Util/OfflineSorter.cs | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/c29ca08b/src/Lucene.Net/Util/OfflineSorter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Util/OfflineSorter.cs b/src/Lucene.Net/Util/OfflineSorter.cs
index db34023..bce5f2e 100644
--- a/src/Lucene.Net/Util/OfflineSorter.cs
+++ b/src/Lucene.Net/Util/OfflineSorter.cs
@@ -141,11 +141,6 @@ namespace Lucene.Net.Util
         /// </summary>
         public class SortInfo
         {
-            internal virtual void InitializeInstanceFields()
-            {
-                BufferSize = outerInstance.ramBufferSize.bytes;
-            }
-
             private readonly OfflineSorter outerInstance;
 
             /// <summary>
@@ -171,7 +166,7 @@ namespace Lucene.Net.Util
             public long ReadTime { get; set; }
             /// <summary>
             /// Read buffer size (in bytes) </summary>
-            public long BufferSize { get; set; } // LUCENENET TODO: API - make setter private
+            public long BufferSize { get; private set; }
 
             /// <summary>
             /// Create a new <see cref="SortInfo"/> (with empty statistics) for debugging.
</summary>
@@ -179,7 +174,7 @@ namespace Lucene.Net.Util
             {
                 this.outerInstance = outerInstance;
 
-                InitializeInstanceFields();
+                BufferSize = outerInstance.ramBufferSize.bytes;
             }
 
             /// <summary>


Mime
View raw message