Replace String.indexOf(char, 0) with String.indexOf(char)
MSALReplace String.indexOf(char ch, int fromIndex) with String.indexOf(char).
org. openrewrite. java. migrate. lang. StringRulesRecipes$IndexOfCharRecipemod run . --recipe= 'org. openrewrite. java. migrate. lang. StringRulesRecipes$IndexOfCharRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.