A reoccurring Java fix

Replacing For-Loops with Stream::forEach improves the readability and makes the code more compact. jSparrow has a fix automation for this issue since 2017 and it has been one of the most visited and read-about rules!

Only this summer we received a whooping 9k visits on the rule page through Google search alone. Very impressive!

#java #refactoring #jsparrow #codequality

Leave a Reply

Your email address will not be published. Required fields are marked *