ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <>
Subject [jira] [Created] (AMBARI-22965) Boolean#getBoolean is used to parse value
Date Mon, 12 Feb 2018 17:50:00 GMT
Ted Yu created AMBARI-22965:

             Summary: Boolean#getBoolean is used to parse value
                 Key: AMBARI-22965
             Project: Ambari
          Issue Type: Bug
            Reporter: Ted Yu

In :
      if (cf.containsKey(SET_INSTANCE_ID_PROPERTY)) {
        setInstanceId = Boolean.getBoolean(cf.get(SET_INSTANCE_ID_PROPERTY).toString());
According to
Returns true if and only if the system property named by the argument exists and is equal
to the string "true"
This was not the intention of the quoted code. may have the same issue.

This message was sent by Atlassian JIRA

View raw message