** org.openrewrite.java.cleanup.IndexOfReplaceableByContains** Checking if a value is included in a String or List using indexOf(value)>-1 or indexOf(value)>=0 can be replaced with contains(value).
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.IndexOfReplaceableByContains