Replace String literal

Apache 2.0

Replace the value of a complete String literal.

org.openrewrite.java.ReplaceStringLiteralValue

Required

The String value to replace.

The String value to replace with.

mod run . --recipe=org.openrewrite.java.ReplaceStringLiteralValue \ -P oldLiteralValue=apple \ -P newLiteralValue=orange

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