Replace FileUtils.write(File, CharSequence) with FileUtils.write(File, CharSequence, StandardCharsets.UTF_8, false)

MSAL

Replace deprecated FileUtils.write(File, CharSequence) with FileUtils.write(File, CharSequence, StandardCharsets.UTF_8, false).

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

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