check if constructor already contains field assignment before add new one (IDEA-69792)

This commit is contained in:
anna
2011-05-23 20:56:20 +04:00
parent c862b52ae8
commit 81c958ccfd
4 changed files with 51 additions and 9 deletions
@@ -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;
}
}
@@ -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) {
}
}