Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8481

Coverity static analysis: Performace optimalization in map iterating

XMLWordPrintable

      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().

      ElytronHttpExchange#getRequestParameters
      for (String name : queryParameters.keySet()) {
          List<String> values = new ArrayList<>(queryParameters.get(name));
      

            rhn-support-ivassile Ilia Vassilev
            mchoma@redhat.com Martin Choma
            Martin Choma Martin Choma
            Martin Choma Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: