hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hongyuan Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-14537) FindBugs warning in ECSchema#toString
Date Mon, 03 Jul 2017 11:56:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-14537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hongyuan Li updated HADOOP-14537:
---------------------------------
    Description: 
should we use entryset instead of keyset? which is more efficient.
code like below:
{code}
    for (Map.Entry<String, String> entry : extraOptions.entrySet()) {
      sb.append(entry.getKey() + "=" + entry.getValue() +
          (++i < extraOptions.size() ? ", " : ""));
    }
{code}

  was:
should we use entryset instead of keyset? which is more efficient.
code like below:
{code}

{code}


> FindBugs warning in ECSchema#toString
> -------------------------------------
>
>                 Key: HADOOP-14537
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14537
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: common, io
>            Reporter: Hongyuan Li
>            Assignee: Hongyuan Li
>
> should we use entryset instead of keyset? which is more efficient.
> code like below:
> {code}
>     for (Map.Entry<String, String> entry : extraOptions.entrySet()) {
>       sb.append(entry.getKey() + "=" + entry.getValue() +
>           (++i < extraOptions.size() ? ", " : ""));
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message