Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1409

FindBugs: inefficient use of keySet iterator instead of entrySet iterator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.4.0
    • None
    • Broker
    • None

    Description

      Multiple occurrences of code like this

      1391            for (String key : props.keySet()) {
      1392               propstr.append(key);
      1393               propstr.append("=");
          	
      CID 1419417 (#1 of 1): WMI: Inefficient Map Iterator (FB.WMI_WRONG_MAP_ITERATOR)
      1. defect: org.apache.activemq.artemis.jms.server.impl.JMSServerManagerImpl.listPreparedTransactionDetailsAsHTML() makes inefficient use of keySet iterator instead of entrySet iterator.
      1394               propstr.append(props.get(key));
      1395               propstr.append(", ");
      1396            }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: