Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 1af0078a4 -> 17b75ed82


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/17b75ed8
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/17b75ed8
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/17b75ed8

Branch: refs/heads/branch-1.4
Commit: 17b75ed82cd9de9a4d05fbe7e95d6ce8f48423d7
Parents: 1af0078
Author: Janos Gub <j...@hortonworks.com>
Authored: Mon Feb 12 18:35:14 2018 +0100
Committer: tedyu <yuzhih...@gmail.com>
Committed: Mon Feb 12 13:08:32 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/17b75ed8/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 560b74b..1ac774f 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
@@ -1334,7 +1334,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