Use comparison rather than equality checks in for conditions
** org.openrewrite.java.cleanup.NoEqualityInForCondition** Testing for loop termination using an equality operator (== and !=) is dangerous, because it could set up an infinite loop. Using a relational operator instead makes it harder to accidentally write an infinite loop.
This recipe has no required configuration parameters and comes from a rewrite core library. It can be activated directly without adding any dependencies.
Recipes can also be activated directly from the command line by adding the argument -Drewrite.activeRecipes=org.openrewrite.java.cleanup.NoEqualityInForCondition