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

Replace for-loop with forEach loop

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              pawan Pawan Verma
              Reporter:
              pawan Pawan Verma

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment