Community
Participate
Working Groups
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"; }
Would be nice feature to implement: Help is welcome