oussamaLaribi
oussamaLaribi
I don't have this error locally also
I agree with you, this rule can be applied only to js/ts.
I think this rule has to do with Java performance with Collections. As i know, Foreach and Stream API is convenient to work with Collections.
Hello @dedece35, I have made a benchmark to test the example in the description of the rule. Here’s the code and the result. I'm kinda surprised.   https://github.com/oussamaLaribi/jmh-benchmark-JAVA-S53-rule
Hi @dedece35, thank you for ideas. I agree with you to benchmark other kind of loops.