References: Support implicit references to annotation method 'value'. Support Find Usages/Rename on these references
#KT-12657 Fixed (cherry picked from commit 68d0d84)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
package test;
|
||||
|
||||
public @interface JAnn {
|
||||
String valueNew();
|
||||
}
|
||||
|
||||
class Test {
|
||||
@JAnn(valueNew = "abc")
|
||||
void test1() { }
|
||||
|
||||
@JAnn(valueNew = "abc")
|
||||
void test2() { }
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
@JAnn(valueNew = "abc")
|
||||
fun test1() {}
|
||||
|
||||
@JAnn(valueNew = "abc")
|
||||
fun test2() {}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package test;
|
||||
|
||||
public @interface JAnn {
|
||||
String /*rename*/value();
|
||||
}
|
||||
|
||||
class Test {
|
||||
@JAnn("abc")
|
||||
void test1() { }
|
||||
|
||||
@JAnn(value = "abc")
|
||||
void test2() { }
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
@JAnn("abc")
|
||||
fun test1() {}
|
||||
|
||||
@JAnn(value = "abc")
|
||||
fun test2() {}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"type": "MARKED_ELEMENT",
|
||||
"mainFile": "test/JAnn.java",
|
||||
"newName": "valueNew",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user