lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [46/50] [abbrv] lucenenet git commit: Lucene.Net.Spatial: Changed public fields to public properties backed by private fields
Date Tue, 31 Jan 2017 17:56:19 GMT
Lucene.Net.Spatial: Changed public fields to public properties backed by private fields


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

Branch: refs/heads/api-work
Commit: 18f6f7cb316286c2a790a478f8560ebb5d03a98c
Parents: a2f173a
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Jan 31 23:44:15 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Jan 31 23:44:15 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Spatial/Prefix/Tree/QuadPrefixTree.cs |  6 +++++-
 src/Lucene.Net.Spatial/Util/ShapeFieldCache.cs       |  9 ++++++++-
 src/Lucene.Net.Spatial/Util/ValueSourceFilter.cs     | 13 +++++++++++--
 3 files changed, 24 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18f6f7cb/src/Lucene.Net.Spatial/Prefix/Tree/QuadPrefixTree.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Prefix/Tree/QuadPrefixTree.cs b/src/Lucene.Net.Spatial/Prefix/Tree/QuadPrefixTree.cs
index 27787ef..61e690a 100644
--- a/src/Lucene.Net.Spatial/Prefix/Tree/QuadPrefixTree.cs
+++ b/src/Lucene.Net.Spatial/Prefix/Tree/QuadPrefixTree.cs
@@ -66,7 +66,11 @@ namespace Lucene.Net.Spatial.Prefix.Tree
         private readonly double ymid;
 
         private readonly double gridW;
-        public readonly double gridH;
+        public double GridH
+        {
+            get { return gridH; }
+        }
+        private readonly double gridH;
         
         internal readonly double[] levelW;
         internal readonly double[] levelH;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18f6f7cb/src/Lucene.Net.Spatial/Util/ShapeFieldCache.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Util/ShapeFieldCache.cs b/src/Lucene.Net.Spatial/Util/ShapeFieldCache.cs
index cf48502..1a6c683 100644
--- a/src/Lucene.Net.Spatial/Util/ShapeFieldCache.cs
+++ b/src/Lucene.Net.Spatial/Util/ShapeFieldCache.cs
@@ -33,10 +33,17 @@ namespace Lucene.Net.Spatial.Util
     public class ShapeFieldCache<T> where T : IShape
     {
         private readonly IList<T>[] cache;
-        public int defaultLength;
+        public int DefaultLength
+        {
+            get { return defaultLength; }
+            set { defaultLength = value; }
+        }
+        private int defaultLength;
 
         public ShapeFieldCache(int length, int defaultLength)
         {
+            IList<int> test = new int[66];
+
             cache = new IList<T>[length];
             this.defaultLength = defaultLength;
         }

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/18f6f7cb/src/Lucene.Net.Spatial/Util/ValueSourceFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Util/ValueSourceFilter.cs b/src/Lucene.Net.Spatial/Util/ValueSourceFilter.cs
index 10245f7..4b01674 100644
--- a/src/Lucene.Net.Spatial/Util/ValueSourceFilter.cs
+++ b/src/Lucene.Net.Spatial/Util/ValueSourceFilter.cs
@@ -34,8 +34,17 @@ namespace Lucene.Net.Spatial.Util
 
         internal readonly Filter startingFilter;
         internal readonly ValueSource source;
-        public readonly double min;
-        public readonly double max;
+        public double Min
+        {
+            get { return min; }
+        }
+        private readonly double min;
+
+        public double Max
+        {
+            get { return max; }
+        }
+        private readonly double max;
 
         public ValueSourceFilter(Filter startingFilter, ValueSource source, double min, double
max)
         {


Mime
View raw message