Rename: Rename overridden property and all its accessors on attempt to rename overriding accessor in Java code

#KT-4791 Fixed
(cherry picked from commit 29e450e)
This commit is contained in:
Alexey Sedunov
2016-06-14 17:04:38 +03:00
parent 4c447d0580
commit d0a3732c94
14 changed files with 107 additions and 3 deletions
@@ -0,0 +1,5 @@
package lib
interface Foo {
var bar: Int
}
@@ -0,0 +1,14 @@
package usage;
import lib.Foo;
public class JUsage implements Foo {
@Override
public int getBar() {
return 1;
}
@Override
public void setBar(int value) {
}
}
@@ -0,0 +1,5 @@
package lib
interface Foo {
var foo: Int
}
@@ -0,0 +1,14 @@
package usage;
import lib.Foo;
public class JUsage implements Foo {
@Override
public int getFoo() {
return 1;
}
@Override
public void /*rename*/setFoo(int value) {
}
}
@@ -0,0 +1,6 @@
{
"type": "MARKED_ELEMENT",
"mainFile": "usage/JUsage.java",
"newName": "setBar",
"withRuntime": "true"
}