[jboss-jira] [JBoss JIRA] (ELY-981) Coverity static analysis: Performace optimalization in map iterating
Ilia Vassilev (JIRA)
issues at jboss.org
Tue Feb 28 11:46:01 EST 2017
[ https://issues.jboss.org/browse/ELY-981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ilia Vassilev updated ELY-981:
------------------------------
Affects Version/s: 1.1.0.Beta27
> Coverity static analysis: Performace optimalization in map iterating
> --------------------------------------------------------------------
>
> Key: ELY-981
> URL: https://issues.jboss.org/browse/ELY-981
> Project: WildFly Elytron
> Issue Type: Bug
> Components: HTTP
> Affects Versions: 1.1.0.Beta27
> Reporter: Martin Choma
> Assignee: Ilia Vassilev
> Priority: Minor
>
> Coverity static analysis found iterating over map can be enhanced
> https://scan7.coverity.com/reports.htm#v23632/p12664/fileInstanceId=8486751&defectInstanceId=2122705&mergedDefectId=1389593
> Instead of Map.keySet() + Map.get() combo use just Map.entrySet().
>
> {code:java|title=ElytronHttpExchange#getRequestParameters}
> for (String name : queryParameters.keySet()) {
> List<String> values = new ArrayList<>(queryParameters.get(name));
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list