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/12 09:02:55 UTC

[GitHub] [incubator-eventmesh] Alonexc opened a new issue, #1537: [Enhancement] Method uses integer based for loops to iterate over a List [Heartbeat]

Alonexc opened a new issue, #1537:
URL: https://github.com/apache/incubator-eventmesh/issues/1537

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Enhancement Request
   
   ![image](https://user-images.githubusercontent.com/91315508/195299129-f3ed68e8-fb1f-47a4-9863-0ba65f9ce3e1.png)
   located at: org/apache/eventmesh/common/protocol/grpc/protos/Heartbeat.java line 1066 and 1091
   explanation:This method uses an integer-based for loop 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.
   
   ### Describe the solution you'd like
   
   It is recommended to use iterators or foreach.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
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.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] captainbkarthick commented on issue #1537: [Enhancement] Method uses integer based for loops to iterate over a List [Heartbeat]

Posted by GitBox <gi...@apache.org>.
captainbkarthick commented on issue #1537:
URL: https://github.com/apache/incubator-eventmesh/issues/1537#issuecomment-1278508139

   I wish to fix this. Requesting to assign this to me.


-- 
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 closed issue #1537: [Enhancement] Method uses integer based for loops to iterate over a List [Heartbeat]

Posted by GitBox <gi...@apache.org>.
qqeasonchen closed issue #1537: [Enhancement] Method uses integer based for loops to iterate over a List [Heartbeat]
URL: https://github.com/apache/incubator-eventmesh/issues/1537


-- 
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