Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1699

Inefficient usage of map iterators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.0.0.Alpha5
    • 3.0.0.Alpha4
    • CLI
    • None

    Description

      Inefficient usage of map iterators

      Map<String, CommandArgument> options = getDynamicOptions(ctx);
      for (String k : options.keySet()) {
         args.add(options.get(k));
      }
      

      can be replaced with args.addAll(getDynamicOptions(ctx).values());

      Attachments

        Activity

          People

            rsvoboda@redhat.com Rostislav Svoboda
            rsvoboda@redhat.com Rostislav Svoboda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: