[jboss-jira] [JBoss JIRA] (WFCORE-1699) Inefficient usage of map iterators

Rostislav Svoboda (JIRA) issues at jboss.org
Mon Aug 8 08:46:00 EDT 2016


Rostislav Svoboda created WFCORE-1699:
-----------------------------------------

             Summary: Inefficient usage of map iterators
                 Key: WFCORE-1699
                 URL: https://issues.jboss.org/browse/WFCORE-1699
             Project: WildFly Core
          Issue Type: Bug
          Components: CLI
    Affects Versions: 3.0.0.Alpha4
            Reporter: Rostislav Svoboda
            Assignee: Rostislav Svoboda
            Priority: Minor


Inefficient usage of map iterators

{code}
Map<String, CommandArgument> options = getDynamicOptions(ctx);
for (String k : options.keySet()) {
   args.add(options.get(k));
}
{code}
can be replaced with {{args.addAll(getDynamicOptions(ctx).values());}}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list