change signature from usage fix: varargs processing (IDEA-58449)

This commit is contained in:
anna
2010-10-05 18:47:16 +04:00
parent a1ba58e2b1
commit cd75690d57
6 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
// "Change signature of 'f(int...)' to 'f(String, int...)'" "true"
public class S {
void f(String s, int... args) {
f("",1,1);
}
}

View File

@@ -0,0 +1,6 @@
// "Change signature of 'f(int...)' to 'f(String, int...)'" "true"
public class S {
void f(String s, int... args) {
f("",null);
}
}

View File

@@ -0,0 +1,6 @@
// "Change signature of 'f(int...)' to 'f(String, int...)'" "true"
public class S {
void f(int... args) {
f("",1,1)<caret>;
}
}

View File

@@ -0,0 +1,6 @@
// "Change signature of 'f(int...)' to 'f(String, int...)'" "true"
public class S {
void f(int... args) {
f("",null)<caret>;
}
}

View File

@@ -0,0 +1,6 @@
// "Change signature of 'f(int...)' to 'f(int..., String)'" "false"
public class S {
void f(int... args) {
f(1,1, "")<caret>;
}
}