mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 20:30:42 +07:00
suggest new param name based on type instead of other params
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// "Change signature of 'Bar(String)' to 'Bar(Foo<TypeParamName>, String)'" "true"
|
||||
public class Bar {
|
||||
Bar(Foo<TypeParamName> typeParamNameFoo, String args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<TypeParamName> {
|
||||
void bar() {
|
||||
Bar bar = new Bar(this, "");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Change signature of 'bar(String)' to 'bar(Foo<TypeParamName>, String)'" "true"
|
||||
public class Bar {
|
||||
static void bar(Foo<TypeParamName> typeParamNameFoo, String args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<TypeParamName> {
|
||||
void bar() {
|
||||
Bar.bar(this, "");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Change signature of 'f(String)' to 'f(int, String)'" "true"
|
||||
public class S {
|
||||
void f(int i, String args) {
|
||||
|
||||
}
|
||||
|
||||
void bar() {
|
||||
f(11, "");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Change signature of 'Bar(String)' to 'Bar(Foo<TypeParamName>, String)'" "true"
|
||||
public class Bar {
|
||||
Bar(String args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<TypeParamName> {
|
||||
void bar() {
|
||||
Bar bar = new Bar(th<caret>is, "");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Change signature of 'bar(String)' to 'bar(Foo<TypeParamName>, String)'" "true"
|
||||
public class Bar {
|
||||
static void bar(String args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Foo<TypeParamName> {
|
||||
void bar() {
|
||||
Bar.bar(th<caret>is, "");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Change signature of 'f(String)' to 'f(int, String)'" "true"
|
||||
public class S {
|
||||
void f(String args) {
|
||||
|
||||
}
|
||||
|
||||
void bar() {
|
||||
f(1<caret>1, "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user