Change type in String literals

Apache 2.0

Change a given type to another when used in a String literal.

org.openrewrite.java.ChangeTypeInStringLiteral

Required

Fully-qualified class name of the original type.

Fully-qualified class name of the replacement type, or the name of a primitive such as "int". The OuterClassName$NestedClassName naming convention should be used for nested classes.

mod run . --recipe=org.openrewrite.java.ChangeTypeInStringLiteral \ -P oldFullyQualifiedTypeName=org.junit.Assume \ -P newFullyQualifiedTypeName=org.junit.jupiter.api.Assumptions

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