codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. Apache
  3. ApacheCommonsFileUtils Refaster recipes

ApacheCommonsFileUtils Refaster recipes

MSAL

Refaster template recipes for org.openrewrite.apache.commons.io.ApacheCommonsFileUtils.

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

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

Recipe list

It runs these recipes, in this order.

Recipe
  1. Replace FileUtils.getFile(String...) with JDK provided API
  2. Replace FileUtils.writeStringToFile(File, String) with JDK provided API
  3. Replace FileUtils.readFileToString(File) with FileUtils.readFileToString(File, StandardCharsets.UTF_8)
  4. Replace FileUtils.readLines(File) with FileUtils.readLines(File, StandardCharsets.UTF_8)
  5. Replace FileUtils.write(File, CharSequence) with FileUtils.write(File, CharSequence, StandardCharsets.UTF_8, false)
  6. Replace FileUtils.write(File, CharSequence, boolean) with FileUtils.write(File, CharSequence, StandardCharsets.UTF_8, boolean)
  7. Replace FileUtils.writeStringToFile(File, String, boolean) with FileUtils.writeStringToFile(File, String, StandardCharsets.UTF_8, boolean)
© Moderne, 2026
Recipe indexPrivacyTerms