mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
check if constructor already contains field assignment before add new one (IDEA-69792)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Add constructor parameter" "true"
|
||||
class A {
|
||||
private final String text;
|
||||
|
||||
public Foo(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public Foo(int i, String text) {
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Add constructor parameter" "true"
|
||||
class A {
|
||||
private final String te<caret>xt;
|
||||
|
||||
public Foo(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public Foo(int i) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user