Replace FileUtils.writeStringToFile(File, String, boolean) with FileUtils.writeStringToFile(File, String, StandardCharsets.UTF_8, boolean)

MSAL

Replace deprecated FileUtils.writeStringToFile(File, String, boolean) with FileUtils.writeStringToFile(File, String, StandardCharsets.UTF_8, boolean).

org.openrewrite.apache.commons.io.ApacheCommonsFileUtilsRecipes$WriteStringToFileAppendWithCharsetRecipe
mod run . --recipe='org.openrewrite.apache.commons.io.ApacheCommonsFileUtilsRecipes$WriteStringToFileAppendWithCharsetRecipe'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.