[
https://issues.jboss.org/browse/ELY-981?page=com.atlassian.jira.plugin.sy...
]
Ilia Vassilev moved WFLY-7956 to ELY-981:
-----------------------------------------
Project: WildFly Elytron (was: WildFly)
Key: ELY-981 (was: WFLY-7956)
Component/s: HTTP
(was: Security)
Affects Version/s: (was: 11.0.0.Alpha1)
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
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=84867...
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)