Repository: hbase
Updated Branches:
  refs/heads/branch-1.2 b59c3151d -> 0f3bf5489


HBASE-19981 Boolean#getBoolean is used to parse value

Signed-off-by: tedyu <yuzhih...@gmail.com>


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

Branch: refs/heads/branch-1.2
Commit: 0f3bf54899e4d8927f76f9e9515e774590ad56eb
Parents: b59c315
Author: Janos Gub <j...@hortonworks.com>
Authored: Mon Feb 12 18:35:14 2018 +0100
Committer: tedyu <yuzhih...@gmail.com>
Committed: Tue Feb 13 16:32:16 2018 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0f3bf548/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
----------------------------------------------------------------------
diff --git 
a/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java 
b/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
index b7e8177..6cd047a 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/HColumnDescriptor.java
@@ -1332,7 +1332,7 @@ public class HColumnDescriptor implements 
WritableComparable<HColumnDescriptor>
         // in version 8, the BloomFilter setting changed from bool to enum
         if (version < 8 && Bytes.toString(key.get()).equals(BLOOMFILTER)) {
           value.set(Bytes.toBytes(
-              Boolean.getBoolean(Bytes.toString(value.get()))
+              Boolean.parseBoolean(Bytes.toString(value.get()))
                 ? BloomType.ROW.toString()
                 : BloomType.NONE.toString()));
         }

Reply via email to