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

    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment