Find Usages: Fixed searching of Java usages for @JvmStatic properties and @JvmStatic @JvmOverloads functions
#KT-11736 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
package testing.rename
|
||||
|
||||
public open class C {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@JvmOverloads
|
||||
fun second(n: Int = 1) {}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.C;
|
||||
|
||||
class JavaClient {
|
||||
public void foo() {
|
||||
C.second(2);
|
||||
C.second();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package testing.rename
|
||||
|
||||
public open class C {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
@JvmOverloads
|
||||
fun first(n: Int = 1) {}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.C;
|
||||
|
||||
class JavaClient {
|
||||
public void foo() {
|
||||
C.first(2);
|
||||
C.first();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "KOTLIN_FUNCTION",
|
||||
"classId": "testing/rename/C.Companion",
|
||||
"oldName": "first",
|
||||
"newName": "second",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package testing.rename
|
||||
|
||||
public open class C {
|
||||
companion object {
|
||||
@JvmStatic var second = 1
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.C;
|
||||
|
||||
class JavaClient {
|
||||
public void foo() {
|
||||
C.getSecond();
|
||||
C.setSecond(2);
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package testing.rename
|
||||
|
||||
public open class C {
|
||||
companion object {
|
||||
@JvmStatic var first = 1
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package testing;
|
||||
|
||||
import testing.rename.C;
|
||||
|
||||
class JavaClient {
|
||||
public void foo() {
|
||||
C.getFirst();
|
||||
C.setFirst(2);
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"type": "KOTLIN_PROPERTY",
|
||||
"classId": "testing/rename/C.Companion",
|
||||
"oldName": "first",
|
||||
"newName": "second",
|
||||
"withRuntime": "true"
|
||||
}
|
||||
Reference in New Issue
Block a user