mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
create constructor params from field: do not reject next constructors if current one is chained (IDEA-131746)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Add constructor parameter" "true"
|
||||
abstract class FooBar {
|
||||
protected final String myFoo;
|
||||
|
||||
public FooBar(String myFoo) {
|
||||
this.myFoo = myFoo;
|
||||
}
|
||||
|
||||
public FooBar(Integer interestingType, String myFoo) {
|
||||
this(myFoo);
|
||||
}
|
||||
|
||||
public FooBar(int i, String myFoo) {
|
||||
this(myFoo);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Add constructor parameter" "true"
|
||||
abstract class FooBar {
|
||||
protected final String my<caret>Foo;
|
||||
|
||||
public FooBar() {
|
||||
}
|
||||
|
||||
public FooBar(Integer interestingType) {
|
||||
this();
|
||||
}
|
||||
|
||||
public FooBar(int i) {
|
||||
this();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user