Project: JDT
Bug 138628 [clean up] semantic change when removing blocks in nested if-then-else
Reported: 2006-04-26 10:02:51 | Status: verified fixed

If you run clean up and use "no block for single statements" then the braces are removed from the following. if (a) { if (b) doSomething(); } else doSomethingElse(); which actually results in the symantically different code if (a) if (b) doSomething(); else doSomethingElse(); It was only during reformatting I spotted the code move on the screen.

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest.java 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