Change Signature: Support Change Signature quick-fix for Java -> Kotlin case

#KT-9401 Fixed
This commit is contained in:
Alexey Sedunov
2016-02-11 12:12:03 +03:00
parent 8761819117
commit d587bb2ea6
47 changed files with 390 additions and 22 deletions
@@ -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);
}
}
@@ -0,0 +1,5 @@
open class K {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'foo'" "true"
public class J {
void foo() {
new K().foo(<caret>1);
}
}
@@ -0,0 +1,5 @@
open class K(i: Int) {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'K'" "true"
public class J {
void foo() {
new K(1);
}
}
@@ -0,0 +1,5 @@
open class K {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'K'" "true"
public class J {
void foo() {
new K(<caret>1);
}
}
@@ -0,0 +1,5 @@
open class K(i: Int) {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'K'" "true"
public class J {
void foo() {
new K(1);
}
}
@@ -0,0 +1,5 @@
open class K() {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'K'" "true"
public class J {
void foo() {
new K(<caret>1);
}
}
@@ -0,0 +1,7 @@
open class K {
constructor(i: Int)
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'K'" "true"
public class J {
void foo() {
new K(1);
}
}
@@ -0,0 +1,7 @@
open class K {
constructor()
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Add 'int' as 1st parameter to method 'K'" "true"
public class J {
void foo() {
new K(<caret>1);
}
}
@@ -0,0 +1,5 @@
open class K {
open fun foo(n: Int, b: String) {
}
}
@@ -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");
}
}
@@ -0,0 +1,5 @@
open class K {
open fun foo(n: Int, b: Boolean) {
}
}
@@ -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");
}
}
@@ -0,0 +1,5 @@
open class K(n: Int, b: String) {
open fun foo() {
}
}
@@ -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");
}
}
@@ -0,0 +1,5 @@
open class K(n: Int, b: Boolean) {
open fun foo() {
}
}
@@ -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");
}
}
@@ -0,0 +1,7 @@
open class K {
constructor(n: Int, b: String)
open fun foo() {
}
}
@@ -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");
}
}
@@ -0,0 +1,7 @@
open class K {
constructor(n: Int, b: Boolean)
open fun foo() {
}
}
@@ -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");
}
}
@@ -0,0 +1,5 @@
open class K {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Remove 1st parameter from method 'foo'" "true"
public class J {
void foo() {
new K().foo(<caret>);
}
}
@@ -0,0 +1,5 @@
open class K {
open fun foo(n: Int) {
}
}
@@ -0,0 +1,7 @@
// "Remove 1st parameter from method 'foo'" "true"
public class J {
void foo() {
new K().foo(<caret>);
}
}
@@ -0,0 +1,5 @@
open class K() {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Remove 1st parameter from method 'K'" "true"
public class J {
void foo() {
new K(<caret>);
}
}
@@ -0,0 +1,5 @@
open class K(n: Int) {
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Remove 1st parameter from method 'K'" "true"
public class J {
void foo() {
new K(<caret>);
}
}
@@ -0,0 +1,7 @@
open class K {
constructor()
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Remove 1st parameter from method 'K'" "true"
public class J {
void foo() {
new K(<caret>);
}
}
@@ -0,0 +1,7 @@
open class K {
constructor(n: Int)
open fun foo() {
}
}
@@ -0,0 +1,7 @@
// "Remove 1st parameter from method 'K'" "true"
public class J {
void foo() {
new K(<caret>);
}
}