Replace getLocalizedInputStream and getLocalizedOutputStream with direct assignment

MSAL

Replaces Runtime.getLocalizedInputStream(InputStream) and Runtime.getLocalizedOutputStream(OutputStream) with their direct arguments. This modification is made because the previous implementation of getLocalizedInputStream and getLocalizedOutputStream merely returned the arguments provided.

org.openrewrite.java.migrate.ReplaceLocalizedStreamMethods

Optional

A method pattern matching the getLocalizedInputStream(InputStream) method to replace. Defaults to the method on java.lang.Runtime.

A method pattern matching the getLocalizedOutputStream(OutputStream) method to replace. Defaults to the method on java.lang.Runtime.

mod run . --recipe=org.openrewrite.java.migrate.ReplaceLocalizedStreamMethods

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