Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Cleanup to replace deprecated method calls to support interface methods #3627

Open
laeubi opened this issue Jan 28, 2025 · 0 comments

Comments

@laeubi
Copy link
Contributor

laeubi commented Jan 28, 2025

With 4.30 there was this cool feature added:

https://eclipse.dev/eclipse/news/4.30/jdt.html#deprecated-cleanup

but it has an limitation:

The linked method is actually called in the implementation of the deprecated method

This obviously is almost never the case for interfaces, but actually these are quite often deprecated in interface based designs. It would therefore be great is interfaces that deprecate one method and reference another one could also be supported.

This might have some limitations e.g.

  1. Only work if the new method has the same signature but a different name/target type
  2. Has less arguments than the old one (e.g. like done with the quickfix to remove parameters)
  3. ....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant