hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yi Liang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17821) The CompoundConfiguration#toString is wrong
Date Thu, 23 Mar 2017 20:26:41 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15939168#comment-15939168
] 

Yi Liang commented on HBASE-17821:
----------------------------------

Hi Chai-ping, 
   Just saw this jira, and provide a patch. 

> The CompoundConfiguration#toString is wrong
> -------------------------------------------
>
>                 Key: HBASE-17821
>                 URL: https://issues.apache.org/jira/browse/HBASE-17821
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Priority: Trivial
>              Labels: beginner
>
> Find this bug when reading code. We dont use the API, so it is a trivial bug.
> sb.append(this.configs); -> sb.append(m);
> {noformat}
>   @Override
>   public String toString() {
>     StringBuffer sb = new StringBuffer();
>     sb.append("CompoundConfiguration: " + this.configs.size() + " configs");
>     for (ImmutableConfigMap m : this.configs) {
>       sb.append(this.configs);
>     }
>     return sb.toString();
>   }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message