mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
create param from field in case of chained calls
This commit is contained in:
+14
@@ -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;
|
||||
}
|
||||
}
|
||||
+13
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user