Bug 221147

Summary: [quick fix] Split field initialization
Product: [Eclipse Project] JDT Reporter: Jan Wloka <jan.wloka>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: deepakazad, martinae
Version: 3.3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Jan Wloka CLA 2008-03-03 09:11:23 EST
Refactoring "Split initialization from declaration" could automate the task of separating the initialization from a field's declaration. It could also be provided as a quick fix, analogous to the 'split variable declaration' quick fix for local variables.

private String foo = "whoopie";
public Bar() {}
-->
private final String foo;
public Bar() { this.foo = "whoopie"; }
Comment 1 Martin Aeschlimann CLA 2008-03-03 09:14:34 EST
Would be nice feature to implement: Help is welcome