create param from field in case of chained calls

This commit is contained in:
anna
2010-07-12 16:46:30 +04:00
parent 88efc0190f
commit f0fcf606f5
6 changed files with 71 additions and 24 deletions
@@ -0,0 +1,14 @@
// "Add constructor parameter" "true"
class A {
private final int field;
private int j;
A(int field) {
this(0, field);
}
A(int j, int field) {
this.j = j;
this.field = field;
}
}
@@ -0,0 +1,13 @@
// "Add constructor parameter" "true"
class A {
private final int <caret>field;
private int j;
A() {
this(0);
}
A(int j) {
this.j = j;
}
}