Change type in String literals
Apache 2.0Change a given type to another when used in a String literal.
org. openrewrite. java. ChangeTypeInStringLiteralRequired
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. AssumptionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.