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

Replace for-loop with forEach loop

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • Trunk
    • None
    • ALL COMPONENTS
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: