You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/02/12 17:28:00 UTC

[jira] [Created] (HBASE-19981) Boolean#getBoolean is used to parse value

Ted Yu created HBASE-19981:
------------------------------

             Summary: Boolean#getBoolean is used to parse value
                 Key: HBASE-19981
                 URL: https://issues.apache.org/jira/browse/HBASE-19981
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu


In HColumnDescriptor of branch-1:
{code}
          value.set(Bytes.toBytes(
              Boolean.getBoolean(Bytes.toString(value.get()))
{code}
According to https://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html#getBoolean(java.lang.String):
{code}
Returns true if and only if the system property named by the argument exists and is equal to the string "true"
{code}
This was not the intention of the quoted code.

This was discovered by Fortify.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)