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

Fix rename of accessor method to non-accessor name #817

Open
eric-milles opened this issue Feb 16, 2019 · 0 comments
Open

Fix rename of accessor method to non-accessor name #817

eric-milles opened this issue Feb 16, 2019 · 0 comments
Labels

Comments

@eric-milles
Copy link
Member

eric-milles commented Feb 16, 2019

Consider the following:

class Foo {
  def getBar() {} // rename to "readBar"
  void setBar(value) {} // rename to "writeBar"
}

new Foo().with {
  def x = bar // "bar" should be replaced by "readBar()"
  bar = x // "bar = x" should be replaced by "writeBar(x)"
}

If "getBar" is renamed to a non-accessor style name line "readBar" the property access is not properly refactored to "readBar()".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant