Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-981

Coverity static analysis: Performace optimalization in map iterating

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • 1.1.0.Beta27
    • HTTP
    • None

    Description

      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));
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: