lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [40/52] [abbrv] lucenenet git commit: Fixes LUCENENET-542 #resolve
Date Tue, 25 Apr 2017 11:51:21 GMT
Fixes LUCENENET-542 #resolve


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

Branch: refs/heads/master
Commit: cf19759fa880fef96962dacda2f1288e347b71bb
Parents: 544f912
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Apr 24 06:31:35 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Apr 24 06:54:46 2017 +0700

----------------------------------------------------------------------
 .../Tartarus/Snowball/SnowballProgram.cs                          | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cf19759f/src/Lucene.Net.Analysis.Common/Tartarus/Snowball/SnowballProgram.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Analysis.Common/Tartarus/Snowball/SnowballProgram.cs b/src/Lucene.Net.Analysis.Common/Tartarus/Snowball/SnowballProgram.cs
index b2636ff..2dd5cd4 100644
--- a/src/Lucene.Net.Analysis.Common/Tartarus/Snowball/SnowballProgram.cs
+++ b/src/Lucene.Net.Analysis.Common/Tartarus/Snowball/SnowballProgram.cs
@@ -334,7 +334,8 @@ namespace Lucene.Net.Tartarus.Snowball
                     try
                     {
                         object resobj = w.Method.Invoke(w.MethodObject, EMPTY_ARGS);
-                        res = resobj.ToString().Equals("true");
+                        // LUCENENET-542: Fixed case-sensitivity problem
+                        res = resobj.ToString().Equals("true", StringComparison.OrdinalIgnoreCase);
                     }
                     catch (TargetInvocationException /*e*/)
                     {


Mime
View raw message