Replace constant with another constant

Apache 2.0

Replace a constant with another constant, adding/removing import on class if needed.

org.openrewrite.java.ReplaceConstantWithAnotherConstant

Required

mod run . --recipe=org.openrewrite.java.ReplaceConstantWithAnotherConstant \ -P existingFullyQualifiedConstantName=org.springframework.http.MediaType.APPLICATION_JSON_VALUE \ -P fullyQualifiedConstantName=org.springframework.http.MediaType.APPLICATION_JSON_VALUE

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