rewrite-migrate-java icon indicating copy to clipboard operation
rewrite-migrate-java copied to clipboard

adding recipe RemovedToolProviderConstructor

Open ranuradh opened this issue 1 year ago • 0 comments

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

  • [x] I've added unit tests to cover both positive and negative cases
  • [x] I've read and applied the recipe conventions and best practices
  • [x] I've used the IntelliJ IDEA auto-formatter on affected files

ranuradh avatar Apr 05 '24 13:04 ranuradh