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

Inefficient usage of map iterators

XMLWordPrintable

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

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

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

                Created:
                Updated:
                Resolved: