Replace constant with another constant
Apache 2.0Replace a constant with another constant, adding/removing import on class if needed.
org. openrewrite. java. ReplaceConstantWithAnotherConstantRequired
mod run . --recipe= org. openrewrite. java. ReplaceConstantWithAnotherConstant \
-P existingFullyQualifiedConstantName= org. springframework. http. MediaType. APPLICATION_JSON_VALUE \
-P fullyQualifiedConstantName= org. springframework. http. MediaType. APPLICATION_JSON_VALUEInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.