KT-7135 Java to Kotlin converter should update usages in Java and Koltin code in the rest of the project
#KT-7135 Fixed
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package test;
|
||||
|
||||
class PureUtils {
|
||||
public static void foo1(int p) {}
|
||||
public static int foo2() { return 1; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
object PureUtils {
|
||||
public fun foo1(p: Int) {
|
||||
}
|
||||
|
||||
public fun foo2(): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
class Utils {
|
||||
public static void foo1(int p) {}
|
||||
public static int foo2() { return 1; }
|
||||
|
||||
public static final int staticField = 1;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
object Utils {
|
||||
public fun foo1(p: Int) {
|
||||
}
|
||||
|
||||
public fun foo2(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
public val staticField: Int = 1
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test;
|
||||
|
||||
class C {
|
||||
void foo() {
|
||||
Utils.foo1(Utils.staticField);
|
||||
Utils.staticField += Utils.foo2();
|
||||
PureUtils.foo1(PureUtils.foo2())
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test;
|
||||
|
||||
class C {
|
||||
void foo() {
|
||||
Utils.INSTANCE$.foo1(Utils.staticField);
|
||||
Utils.staticField += Utils.INSTANCE$.foo2();
|
||||
PureUtils.INSTANCE$.foo1(PureUtils.INSTANCE$.foo2())
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
Utils.foo1(Utils.staticField)
|
||||
PureUtils.foo1(PureUtils.foo2())
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
fun foo() {
|
||||
Utils.foo1(Utils.staticField)
|
||||
PureUtils.foo1(PureUtils.foo2())
|
||||
}
|
||||
Reference in New Issue
Block a user