[
https://issues.apache.org/jira/browse/AMQ-9550?focusedWorklogId=942853&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-942853
]
ASF GitHub Bot logged work on AMQ-9550:
---------------------------------------
Author: ASF GitHub Bot
Created on: 08/Nov/24 18:06
Start Date: 08/Nov/24 18:06
Worklog Time Spent: 10m
Work Description: kenliao94 commented on PR #1282:
URL: https://github.com/apache/activemq/pull/1282#issuecomment-2465460146
@mattrpav Good call out.
Issue Time Tracking
-------------------
Worklog Id: (was: 942853)
Time Spent: 40m (was: 0.5h)
> for loop can be replaced with enhanced for
> ------------------------------------------
>
> Key: AMQ-9550
> URL: https://issues.apache.org/jira/browse/AMQ-9550
> Project: ActiveMQ Classic
> Issue Type: Improvement
> Reporter: ERASKIN ALEKSEI
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Iteration over collections or arrays can be replaced with an enhanced for
> loop (foreach iteration syntax).
>
> The for-each construct gets rid of the clutter and the opportunity for error.
> When should you use the for-each loop? Any time you can. It really beautifies
> your code.
>
> See more details why
> [https://docs.oracle.com/javase/8/docs/technotes/guides/language/foreach.html]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact