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

Active refactorings #2645

Open
Keyslam opened this issue Oct 24, 2021 · 0 comments
Open

Active refactorings #2645

Keyslam opened this issue Oct 24, 2021 · 0 comments

Comments

@Keyslam
Copy link

Keyslam commented Oct 24, 2021

Hello,

Is it possible to leverage error-prone to develop a system for active refactorings, such as 'rename method', which would then try and perform the error, or give an error if that is not possible (In cases of name collision, or something else)?

Another example would be

class Super {
  void Do() { }
}

class Sub extends Super {
  @Override
  void Do() { }

  void Test() {
    Do()
  }
}

Say we want to perform the refatoring 'remove method' on Sub.Do. This wouldn't cause a compile error, since the Do() call would result in calling Super.Do instead of Sub.Do. However, we'd want to instead receive a warning that this refactoring breaks or program.

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