cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject [5/5] git commit: avoid boxing calisthenics
Date Sun, 14 Oct 2012 18:59:35 GMT
avoid boxing calisthenics


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

Branch: refs/heads/trunk
Commit: f75026a17fb6f4437b808b76f4adb089d1321743
Parents: 4f5d072
Author: Dave Brosius <dbrosius@apache.org>
Authored: Wed Oct 10 23:59:02 2012 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Wed Oct 10 23:59:02 2012 -0400

----------------------------------------------------------------------
 .../org/apache/cassandra/hadoop/ConfigHelper.java  |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f75026a1/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/hadoop/ConfigHelper.java b/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
index a2a461b..1523105 100644
--- a/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
+++ b/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
@@ -131,7 +131,7 @@ public class ConfigHelper
 
         conf.set(OUTPUT_KEYSPACE_CONFIG, keyspace);
     }
-    
+
     /**
      * Set the column family for the input of this job.
      *
@@ -142,7 +142,7 @@ public class ConfigHelper
     {
     	conf.set(OUTPUT_COLUMNFAMILY_CONFIG, columnFamily);
     }
-    
+
     /**
      * Set the column family for the input of this job.
      *
@@ -347,7 +347,7 @@ public class ConfigHelper
     {
         return conf.get(INPUT_COLUMNFAMILY_CONFIG);
     }
-    
+
     public static String getOutputColumnFamily(Configuration conf)
     {
     	if (conf.get(OUTPUT_COLUMNFAMILY_CONFIG) != null)
@@ -358,7 +358,7 @@ public class ConfigHelper
 
     public static boolean getInputIsWide(Configuration conf)
     {
-        return Boolean.valueOf(conf.get(INPUT_WIDEROWS_CONFIG));
+        return Boolean.parseBoolean(conf.get(INPUT_WIDEROWS_CONFIG));
     }
 
     public static String getReadConsistencyLevel(Configuration conf)


Mime
View raw message