Change Signature: Keep parameter 'val'/'var' when invoked from Java
#KT-20901 Fixed #KT-21159 Fixed
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
class Foo(i: Int, val n: Int)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'Foo'" "true"
|
||||
|
||||
public class J {
|
||||
void test() {
|
||||
new Foo(<caret>1, 2);
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Foo(val n: Int)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'Foo'" "true"
|
||||
|
||||
public class J {
|
||||
void test() {
|
||||
new Foo(<caret>1, 2);
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Foo(val n: Int, i: Int)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 2nd parameter to method 'Foo'" "true"
|
||||
|
||||
public class J {
|
||||
void test() {
|
||||
new Foo(<caret>1, 2);
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
class Foo(val n: Int)
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 2nd parameter to method 'Foo'" "true"
|
||||
|
||||
public class J {
|
||||
void test() {
|
||||
new Foo(<caret>1, 2);
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class K(private val a: Int, val b: Int) {
|
||||
override fun toString(): String = b.toString()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 1st parameter of method 'K' from 'String' to 'int'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K<caret>(1, 2);
|
||||
}
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class K(private val a: String, val b: Int) {
|
||||
override fun toString(): String = b.toString()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 1st parameter of method 'K' from 'String' to 'int'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K<caret>(1, 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user