Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11829

Replace for-loop with forEach loop

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: ALL COMPONENTS
    • Labels:
      None

      Description

      Replace for-loop with a forEach loop

       

      List<String> topics = new LinkedList<>();
      for (int i = 0; i < topicList.size(); i++) {
          GenericValue assoc = topicList.get(i);
      

      Replace with

       

      for (GenericValue assoc : topicList) {
      

        Attachments

        1. OFBIZ-11829.patch
          91 kB
          Pawan Verma
        2. OFBIZ-11829-plugins.patch
          88 kB
          Pawan Verma

          Activity

            People

            • Assignee:
              pawan Pawan Verma
              Reporter:
              pawan Pawan Verma
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: