create constructor params from field: do not reject next constructors if current one is chained (IDEA-131746)

This commit is contained in:
Anna Kozlova
2014-10-23 14:46:31 +02:00
parent 247fbc358f
commit 71d92723a8
3 changed files with 38 additions and 3 deletions
@@ -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);
}
}
@@ -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();
}
}