lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [09/38] lucenenet git commit: API: Lucene.Net.Util.PackedInt32s.Format: Changed Values() > Values (property)
Date Thu, 22 Jun 2017 05:25:10 GMT
API: Lucene.Net.Util.PackedInt32s.Format: Changed Values() > Values (property)


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

Branch: refs/heads/master
Commit: 8a19d2733cc37007687565d6ea0f91de55f9cc76
Parents: c29ca08
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Jun 17 13:27:52 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Jun 17 13:27:52 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs | 6 +++---
 src/Lucene.Net/Codecs/Lucene41/ForUtil.cs          | 2 +-
 src/Lucene.Net/Util/Packed/PackedInts.cs           | 6 +++---
 3 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8a19d273/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs b/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
index 3ea32c9..6e3010a 100644
--- a/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
+++ b/src/Lucene.Net.Tests/Util/Packed/TestPackedInts.cs
@@ -48,7 +48,7 @@ namespace Lucene.Net.Util.Packed
             for (int i = 0; i < iters; ++i)
             {
                 int valueCount = RandomInts.NextIntBetween(Random(), 1, int.MaxValue);
-                foreach (PackedInt32s.Format format in PackedInt32s.Format.Values())
+                foreach (PackedInt32s.Format format in PackedInt32s.Format.Values)
                 {
                     for (int bpv = 1; bpv <= 64; ++bpv)
                     {
@@ -222,7 +222,7 @@ namespace Lucene.Net.Util.Packed
             {
                 for (int bpv = 1; bpv <= 64; ++bpv)
                 {
-                    foreach (PackedInt32s.Format format in PackedInt32s.Format.Values())
+                    foreach (PackedInt32s.Format format in PackedInt32s.Format.Values)
                     {
                         if (!format.IsSupported(bpv))
                         {
@@ -993,7 +993,7 @@ namespace Lucene.Net.Util.Packed
         [Test]
         public virtual void TestEncodeDecode()
         {
-            foreach (PackedInt32s.Format format in PackedInt32s.Format.Values())
+            foreach (PackedInt32s.Format format in PackedInt32s.Format.Values)
             {
                 for (int bpv = 1; bpv <= 64; ++bpv)
                 {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8a19d273/src/Lucene.Net/Codecs/Lucene41/ForUtil.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Codecs/Lucene41/ForUtil.cs b/src/Lucene.Net/Codecs/Lucene41/ForUtil.cs
index d65a350..ce76c8f 100644
--- a/src/Lucene.Net/Codecs/Lucene41/ForUtil.cs
+++ b/src/Lucene.Net/Codecs/Lucene41/ForUtil.cs
@@ -53,7 +53,7 @@ namespace Lucene.Net.Codecs.Lucene41
             int maxDataSize = 0;
             for (int version = PackedInt32s.VERSION_START; version <= PackedInt32s.VERSION_CURRENT;
version++)
             {
-                foreach (PackedInt32s.Format format in PackedInt32s.Format.Values()/* Enum.GetValues(typeof(PackedInts.Format))*/)
+                foreach (PackedInt32s.Format format in PackedInt32s.Format.Values/* Enum.GetValues(typeof(PackedInts.Format))*/)
                 {
                     for (int bpv = 1; bpv <= 32; ++bpv)
                     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/8a19d273/src/Lucene.Net/Util/Packed/PackedInts.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Util/Packed/PackedInts.cs b/src/Lucene.Net/Util/Packed/PackedInts.cs
index fcd2adc..615d5b4 100644
--- a/src/Lucene.Net/Util/Packed/PackedInts.cs
+++ b/src/Lucene.Net/Util/Packed/PackedInts.cs
@@ -169,9 +169,9 @@ namespace Lucene.Net.Util.Packed
 
             private static readonly Format[] values = new Format[] { PACKED, PACKED_SINGLE_BLOCK
};
 
-            public static IEnumerable<Format> Values() // LUCENENET TODO: API - make
property
+            public static IEnumerable<Format> Values
             {
-                return values;
+                get { return values; }
             }
 
             /// <summary>
@@ -179,7 +179,7 @@ namespace Lucene.Net.Util.Packed
             /// </summary>
             public static Format ById(int id)
             {
-                foreach (Format format in Values())
+                foreach (Format format in Values)
                 {
                     if (format.Id == id)
                     {


Mime
View raw message