mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
add constructor param from field: filter constructors for all field assignments (IDEA-61889)
This commit is contained in:
+15
@@ -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";
|
||||
}
|
||||
}
|
||||
+14
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user