Change Signature: Support Change Signature quick-fix for Java -> Kotlin case
#KT-9401 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo(i: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'foo'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K().foo(1);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'foo'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K().foo(<caret>1);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K(i: Int) {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>1);
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
open class K(i: Int) {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1);
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
open class K() {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>1);
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
open class K {
|
||||
constructor(i: Int)
|
||||
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1);
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
open class K {
|
||||
constructor()
|
||||
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Add 'int' as 1st parameter to method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>1);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo(n: Int, b: String) {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 2nd parameter of method 'foo' from 'boolean' to 'String'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K().foo(1, <caret>"2");
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo(n: Int, b: Boolean) {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 2nd parameter of method 'foo' from 'boolean' to 'String'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K().foo(1, <caret>"2");
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
open class K(n: Int, b: String) {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 2nd parameter of method 'K' from 'boolean' to 'String'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1, <caret>"2");
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
open class K(n: Int, b: Boolean) {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 2nd parameter of method 'K' from 'boolean' to 'String'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1, <caret>"2");
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
open class K {
|
||||
constructor(n: Int, b: String)
|
||||
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 2nd parameter of method 'K' from 'boolean' to 'String'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1, <caret>"2");
|
||||
}
|
||||
}
|
||||
idea/testData/quickfix/changeSignature/jk/jkChangeSecondaryConstructorParameter.before.Dependency.kt
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
open class K {
|
||||
constructor(n: Int, b: Boolean)
|
||||
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Change 2nd parameter of method 'K' from 'boolean' to 'String'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(1, <caret>"2");
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove 1st parameter from method 'foo'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K().foo(<caret>);
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
open class K {
|
||||
open fun foo(n: Int) {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove 1st parameter from method 'foo'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K().foo(<caret>);
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
open class K() {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove 1st parameter from method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>);
|
||||
}
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
open class K(n: Int) {
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove 1st parameter from method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>);
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
open class K {
|
||||
constructor()
|
||||
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove 1st parameter from method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>);
|
||||
}
|
||||
}
|
||||
idea/testData/quickfix/changeSignature/jk/jkRemoveSecondaryConstructorParameter.before.Dependency.kt
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
open class K {
|
||||
constructor(n: Int)
|
||||
|
||||
open fun foo() {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// "Remove 1st parameter from method 'K'" "true"
|
||||
|
||||
public class J {
|
||||
void foo() {
|
||||
new K(<caret>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user