mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
IDEA-17535 Quickfix to remove extra argument in method call implemented
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove redundant arguments to match 'method(int, Integer)'" "true"
|
||||
class A {
|
||||
public A() {
|
||||
method(new Integer(5), 5);
|
||||
}
|
||||
|
||||
private void method(int i, Integer i2) {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove redundant arguments to match 'method(int, T)'" "true"
|
||||
class A {
|
||||
public A() {
|
||||
method(5, new Exception());
|
||||
}
|
||||
|
||||
private <T extends Exception> void method(int i, T t) {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove redundant arguments to match 'method(int, String)'" "true"
|
||||
class A {
|
||||
public A() {
|
||||
method(5, "");
|
||||
}
|
||||
|
||||
private void method(int s, String s2) {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove redundant arguments to match 'method(int, Integer)'" "true"
|
||||
class A {
|
||||
public A() {
|
||||
method(new Integer(5), 5,<caret> "", new String());
|
||||
}
|
||||
|
||||
private void method(int i, Integer i2) {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove redundant arguments to match 'method(int, T)'" "true"
|
||||
class A {
|
||||
public A() {
|
||||
method(5,<caret> new Exception(), new Exception(), "", 3);
|
||||
}
|
||||
|
||||
private <T extends Exception> void method(int i, T t) {
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// "Remove redundant arguments to match 'method(int, String)'" "true"
|
||||
class A {
|
||||
public A() {
|
||||
method(5, "",<caret> 10);
|
||||
}
|
||||
|
||||
private void method(int s, String s2) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user