Project: JDT
Bug 189398 [clean up] Does not add block if expected
Reported: 2007-05-28 06:37:29 | Status: resolved fixed

I20070525-0010 Given: package e; public class A { public void foo(Object o) { if (o != null) System.out.println(o); } } 1. Source>Clean Up... 2. Configure... 3. No block for single return and throw statements 4. OK 5. Finish Is: No change Should: Add a block, shouldn't it? What would you expect?

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/CleanUpTest.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ControlStatementsFix.java