change the origin of light methods for property accessors to the property itself
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.*;
|
||||
|
||||
class GroovyClient {
|
||||
public void foo(AP ap, DP dp) {
|
||||
ap.getSecond
|
||||
new BP().getSecond
|
||||
new CP().getSecond
|
||||
|
||||
dp.getSecond
|
||||
new EP().second
|
||||
new FP().second
|
||||
}
|
||||
|
||||
public interface DP extends AP {
|
||||
}
|
||||
|
||||
public static class EP implements DP {
|
||||
@Override
|
||||
public int getSecond() {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
public static class FP extends EP {
|
||||
@Override
|
||||
public int getSecond() {
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.*;
|
||||
|
||||
class GroovyClient {
|
||||
public void foo(AP ap, DP dp) {
|
||||
ap.first
|
||||
new BP().first
|
||||
new CP().first
|
||||
|
||||
dp.first
|
||||
new EP().first
|
||||
new FP().first
|
||||
}
|
||||
|
||||
public interface DP extends AP {
|
||||
}
|
||||
|
||||
public static class EP implements DP {
|
||||
@Override
|
||||
public int getFirst() {
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
public static class FP extends EP {
|
||||
@Override
|
||||
public int getFirst() {
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user