change the origin of light methods for property accessors to the property itself
This commit is contained in:
+1
-2
@@ -1,5 +1,4 @@
|
||||
[javaAndKotlinOverrides.0.kt] Unclassified usage (13: 9) set(value: String) {
|
||||
[javaAndKotlinOverrides.0.kt] Unclassified usage (25: 18) override var foo: String = ""
|
||||
[javaAndKotlinOverrides.0.kt] Unclassified usage (9: 9) get() {
|
||||
[javaAndKotlinOverrides.0.kt] Unclassified usage (8: 18) override var foo: String
|
||||
[javaAndKotlinOverrides.1.java] Unclassified usage (12: 17) public void setFoo(String s) {
|
||||
[javaAndKotlinOverrides.1.java] Unclassified usage (7: 19) public String getFoo() {
|
||||
+1
-2
@@ -1,6 +1,5 @@
|
||||
[javaAndKotlinOverrides2.0.kt] Unclassified usage (11: 9) set(value: String) {
|
||||
[javaAndKotlinOverrides2.0.kt] Unclassified usage (23: 18) override var foo: String = ""
|
||||
[javaAndKotlinOverrides2.0.kt] Unclassified usage (26: 30) open class E<T>(override var foo: T): A<T>(foo)
|
||||
[javaAndKotlinOverrides2.0.kt] Unclassified usage (7: 9) get() {
|
||||
[javaAndKotlinOverrides2.0.kt] Unclassified usage (6: 18) override var foo: String
|
||||
[javaAndKotlinOverrides2.1.java] Unclassified usage (12: 17) public void setFoo(String s) {
|
||||
[javaAndKotlinOverrides2.1.java] Unclassified usage (7: 19) public String getFoo() {
|
||||
+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