Use System.lineSeparator()

MSAL

Replace calls to System.getProperty("line.separator") with System.lineSeparator().

org.openrewrite.staticanalysis.UseSystemLineSeparator
mod run . --recipe=org.openrewrite.staticanalysis.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.