Skip to content

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

@eric-milles

Description

@eric-milles

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()".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions