Project: JDT
Bug 139938 [quick assist] Surround with template adds unnecessary spaces
Reported: 2006-05-03 08:58:44 | Status: resolved fixed

3.2. RC2 Given: public void foo() { System.out.println(10); } 1. Select line ' System.out.println(10);' 2. 'Alt-Shift-Z' 3. Surround with runnable Is: public void foo() { Runnable runnable = new Runnable() { public void run() { System.out.println(10); } }; <-Tab or spaces here } Should: have no spaces at the end

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/SurroundWithTemplateTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/contentassist/SurroundWithTemplateProposal.java