openrewrite / rewrite-migrate-java

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

adding recipe RemovedToolProviderConstructor #454

Closed ranuradh closed 1 month ago

ranuradh commented 3 months ago

What's changed?

Created RemovedToolProviderConstructor Recipe: For the following rule: image

What's your motivation?

This recipe checks for a specific method pattern and converts it to a static call.The existing recipe ChangeMethodTargetToStatic did not work in this case since it doesn't meet the criteria of the method should not be static and should not be of the SameReceiverType

Anything in particular you'd like reviewers to focus on?

@cjobinabo

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

Checklist

timtebeek commented 1 month ago

Super seeded by