cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [1/2] git commit: no need for toLowerCase() and equalsIgnoreCase() at the same time
Date Wed, 19 Feb 2014 02:45:20 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 c2681e933 -> 5afd2bd48


no need for toLowerCase() and equalsIgnoreCase() at the same time


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

Branch: refs/heads/cassandra-2.1
Commit: e67a0a9819c7cd4facfb4448eea78a29b44d4cf5
Parents: ad3a4f8
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Tue Feb 18 21:43:40 2014 -0500
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Tue Feb 18 21:43:40 2014 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/config/Config.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e67a0a98/src/java/org/apache/cassandra/config/Config.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/config/Config.java b/src/java/org/apache/cassandra/config/Config.java
index ceb8df0..876770c 100644
--- a/src/java/org/apache/cassandra/config/Config.java
+++ b/src/java/org/apache/cassandra/config/Config.java
@@ -224,11 +224,11 @@ public class Config
     {
         if (hinted_handoff_enabled != null && !hinted_handoff_enabled.isEmpty())
         {
-            if (hinted_handoff_enabled.toLowerCase().equalsIgnoreCase("true"))
+            if (hinted_handoff_enabled.equalsIgnoreCase("true"))
             {
                 hinted_handoff_enabled_global = true;
             }
-            else if (hinted_handoff_enabled.toLowerCase().equalsIgnoreCase("false"))
+            else if (hinted_handoff_enabled.equalsIgnoreCase("false"))
             {
                 hinted_handoff_enabled_global = false;
             }


Mime
View raw message