Use IOUtils method that include their charset encoding

MSAL

Use IOUtils method invocations that include the charset encoding instead of using the deprecated versions that do not include a charset encoding. (e.g. converts IOUtils.readLines(inputStream) to IOUtils.readLines(inputStream, StandardCharsets.UTF_8).

org.openrewrite.apache.commons.io.ApacheIOUtilsUseExplicitCharset

Optional

The default encoding to use, must be a standard charset.

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

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