You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2022/10/14 08:21:30 UTC

[GitHub] [incubator-eventmesh] captainbkarthick opened a new pull request, #1568: [ISSUE #1537] Replace integer based for loop with foreach loop

captainbkarthick opened a new pull request, #1568:
URL: https://github.com/apache/incubator-eventmesh/pull/1568

   Fixes #<1537>.
   
   ### Motivation
   Integer-based for loop is used to iterate over a java.util.List, by calling List.get(i) each time through the loop. The integer is not used for other reasons. It is better to use an Iterator instead, as depending on List implementation, iterators can perform better, and they also allow for exchanging of other collection types without issue.
   
   ### Modifications
   * Update existing integer based for loop with the enhanced for loop.
   
   ### Documentation
   
   - Does this pull request introduce a new feature? (yes / no) **No**
   - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) **NA**
   - If a feature is not applicable for documentation, explain why? **NA**
   - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation **NA**
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


[GitHub] [incubator-eventmesh] qqeasonchen merged pull request #1568: [ISSUE #1537] Replace integer based for loop with foreach loop

Posted by GitBox <gi...@apache.org>.
qqeasonchen merged PR #1568:
URL: https://github.com/apache/incubator-eventmesh/pull/1568


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org