[
https://issues.apache.org/jira/browse/AMQ-9550?focusedWorklogId=930697&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-930697
]
ASF GitHub Bot logged work on AMQ-9550:
---------------------------------------
Author: ASF GitHub Bot
Created on: 17/Aug/24 04:44
Start Date: 17/Aug/24 04:44
Worklog Time Spent: 10m
Work Description: levrun opened a new pull request, #1282:
URL: https://github.com/apache/activemq/pull/1282
What problems does this PR solve?
```
Iteration over collections or arrays can be replaced with an enhanced for
loop (foreach iteration syntax).
See more details why :
https://docs.oracle.com/javase/8/docs/technotes/guides/language/foreach.html
```
Why is it beneficial to merge into ActiveMQ?
```
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.
```
How do you make sure this PR is well tested?
run tests locally
Issue Time Tracking
-------------------
Worklog Id: (was: 930697)
Remaining Estimate: 0h
Time Spent: 10m
> 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: 10m
> 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