Project: JDT
Bug 209465 [convert local] Convert Local Variable to Field removes empty line
Reported: 2007-11-12 05:00:57 | Status: resolved fixed

Build ID: I20071101-2000 Steps To Reproduce: 1. paste the code below in a java editor 2. put the cursor on "list" (declaration) 3. Press Ctrl+1, and select "Convert Local Variable to Field" 4. The quick fix do his job but also removes the empty line before the if statement, while it should'nt !!! public class Foo { void bar(Integer n) { ArrayList<Integer> list = new ArrayList<Integer>(); if (n != null) { list.add(n); } } }

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/PromoteTempToFieldRefactoring.java