ERASKIN ALEKSEI created AMQ-9550:
------------------------------------
Summary: 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
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