lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject git commit: LUCENENET-542: Case sensitivity in true value's ToString
Date Thu, 05 Jun 2014 15:27:40 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 41ebbc2de -> af2b5b2aa


LUCENENET-542: Case sensitivity in true value's ToString


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

Branch: refs/heads/master
Commit: af2b5b2aa117fcd459c7cd139a3ae88f7ad0186b
Parents: 41ebbc2
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Thu Jun 5 18:27:47 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Thu Jun 5 18:27:47 2014 +0300

----------------------------------------------------------------------
 src/contrib/Snowball/SF/Snowball/SnowballProgram.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/af2b5b2a/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
----------------------------------------------------------------------
diff --git a/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs b/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
index b181dde..5f50f60 100644
--- a/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
+++ b/src/contrib/Snowball/SF/Snowball/SnowballProgram.cs
@@ -299,7 +299,7 @@ namespace SF.Snowball
                     {
                         System.Object resobj = w.method.Invoke(w.methodobject, (System.Object[])
new System.Object[0]);
                         // {{Aroush}} UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Object.toString'
may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043_3"'
-                        res = resobj.ToString().Equals("true");
+                        res = resobj.ToString().Equals("true", StringComparison.InvariantCultureIgnoreCase);
                     }
                     catch (System.Reflection.TargetInvocationException)
                     {
@@ -389,7 +389,7 @@ namespace SF.Snowball
                     {
                         System.Object resobj = w.method.Invoke(w.methodobject, (System.Object[])
new System.Object[0]);
                         // {{Aroush}} UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Object.toString'
may return a different value. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1043_3"'
-                        res = resobj.ToString().Equals("true");
+                        res = resobj.ToString().Equals("true", StringComparison.InvariantCultureIgnoreCase);
                     }
                     catch (System.Reflection.TargetInvocationException)
                     {


Mime
View raw message