rewrite
rewrite copied to clipboard
Issue #6287: enable AddMethodParameter to match overridden methods
Improves AddMethodParameter so that methodPattern resolution includes overridden methods from interfaces and superclasses.
- Fixes: #6287
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
@timtebeek kindly review :)
Thanks for the runnable example! I'm off here today, but will try to circle back next week.
I had thought we could clear this up with just changing the expected method pattern instead.
ping @timtebeek
Will likely move into next week before I can get to this; I've got some online trainings to give and a weekend ahead first. 🙏🏻