You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2019/09/06 09:01:29 UTC

[lucenenet] 19/21: BUG: Lucene.Net.TestFramework.Support.CultureInfoSupport: LoadSupportedCultures() wasn't using the passed-in culturePool

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 2c8ad50c6179cff681e093ffd382049b261f922f
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Fri Sep 6 15:51:47 2019 +0700

    BUG: Lucene.Net.TestFramework.Support.CultureInfoSupport: LoadSupportedCultures() wasn't using the passed-in culturePool
---
 src/Lucene.Net.TestFramework/Support/CultureInfoSupport.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/Lucene.Net.TestFramework/Support/CultureInfoSupport.cs b/src/Lucene.Net.TestFramework/Support/CultureInfoSupport.cs
index 089f57c..5d2471c 100644
--- a/src/Lucene.Net.TestFramework/Support/CultureInfoSupport.cs
+++ b/src/Lucene.Net.TestFramework/Support/CultureInfoSupport.cs
@@ -31,7 +31,7 @@ namespace Lucene.Net.Support
 #if NETSTANDARD1_6
 
         #region culturePool
-        private static string[] specificCulturePool = new string[] 
+        private static readonly string[] specificCulturePool =
         {
             "fr-KM",
             "fr-LU",
@@ -333,7 +333,7 @@ namespace Lucene.Net.Support
             "zh-TW",
             "zu-ZA"
         };
-        private static string[] neutralCulturePool = new string[]
+        private static readonly string[] neutralCulturePool =
         {
             "aa",
             "af",
@@ -621,7 +621,7 @@ namespace Lucene.Net.Support
         {
             var cultures = new List<CultureInfo>();
 
-            foreach (var culture in specificCulturePool)
+            foreach (var culture in culturePool)
             {
                 try
                 {
@@ -640,7 +640,7 @@ namespace Lucene.Net.Support
         public static CultureInfo[] GetNeutralAndSpecificCultures()
         {
 #if NETSTANDARD1_6
-            return supportedNeutralCultures.Union(supportedSpecificCultures).ToArray();
+            return supportedSpecificCultures.Union(supportedNeutralCultures).ToArray();
 #else
             return CultureInfo.GetCultures(CultureTypes.SpecificCultures | CultureTypes.NeutralCultures);
 #endif