Community
Participate
Working Groups
Example: public class Foo { public static Foo createInstance(Bar bar) { return new Foo(bar); } private final Bazz bazz; public Foo(Bar bar) { final Bazz bazz = bar.getBazz(); this.bazz = bazz; } } It should be able to place the caret in 'bazz' (first constructor line) and invoke 'Introduce parameter'. The expected result is: public class Foo { public static Foo createInstance(Bar bar) { return new Foo(bar, bar.getBazz()); } private final Bazz bazz; public Foo(Bar bar, Bazz bazz) { this.bazz = bazz; } }
*** This bug has been marked as a duplicate of bug 44811 ***