add constructor param from field: filter constructors for all field assignments (IDEA-61889)

This commit is contained in:
anna
2011-05-27 15:43:38 +04:00
parent 419cca8a1a
commit 23d1e4adf4
3 changed files with 44 additions and 9 deletions
@@ -0,0 +1,15 @@
// "Add constructor parameter" "true"
class Test {
private final String s;
private final int i;
Test(String s) {
this.s = s;
i = 0;
}
Test(int i) {
this.i = i;<caret>
s = "s";
}
}
@@ -0,0 +1,14 @@
// "Add constructor parameter" "true"
class Test {
private final String s;
private final int i<caret>;
Test(String s) {
this.s = s;
i = 0;
}
Test() {
s = "s";
}
}