Qualify a statically imported constant

Proprietary

Refer to a constant through the type declaring it where a single static import brings it in, and remove that import, so that a recipe matching the qualified constant, such as org.openrewrite.java.ReplaceConstant, finds every use.

io.moderne.java.primefaces.QualifyStaticallyImportedConstant

Required

Fully qualified name of the type that declares the constant.

The name of the constant.

mod run . --recipe=io.moderne.java.primefaces.QualifyStaticallyImportedConstant \ -P owningType=org.primefaces.component.treetable.TreeTable \ -P constantName=COLUMN_CONTENT_WRAPPER

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