openrewrite / rewrite-migrate-java

OpenRewrite recipes for migrating to newer versions of Java.
Apache License 2.0
92 stars 65 forks source link

Recipe to call Modifier And ConstantBootstraps methods as static #484

Closed ranuradh closed 1 month ago

ranuradh commented 1 month ago

What's changed?

This is a simple recipe for Java 17 org.openrewrite.java.migrate.RemovedModifierAndConstantBootstrapsConstructors image The recipe calls org.openrewrite.java.ChangeMethodTargetToStatic

timtebeek commented 1 month ago

One question that did arise for me was why these are combined into a single recipe. Something to consider, but not necessarily change before a merge