Prefer System.lineSeparator()

MSAL

Prefer the Java standard library's System.lineSeparator() over third-party usage of apache's IOUtils.LINE_SEPARATOR.

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

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.

  1. Change static field access to static method access IOUtils#LINE_SEPARATOR to lineSeparator