Created RemovedToolProviderConstructor Recipe:
For the following rule:
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?
I had to create a new branch and work on this recipe since my old branch got corrupted for some reason so this work is a duplicate of https://github.com/openrewrite/rewrite-migrate-java/pull/454 and I updated the test to cover the chained call of the methods to be converted to Static.
Anyone you would like to review specifically?
@cjobinabo
Have you considered any alternatives or workarounds?
Any additional context
Checklist
[X] I've added unit tests to cover both positive and negative cases
What's changed?
Created RemovedToolProviderConstructor Recipe: For the following rule:
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?
I had to create a new branch and work on this recipe since my old branch got corrupted for some reason so this work is a duplicate of https://github.com/openrewrite/rewrite-migrate-java/pull/454 and I updated the test to cover the chained call of the methods to be converted to Static.
Anyone you would like to review specifically?
@cjobinabo
Have you considered any alternatives or workarounds?
Any additional context
Checklist