Project: JDT
Bug 208752 [clean up] Remove parentheses is too aggressive
Reported: 2007-11-05 06:51:24 | Status: verified fixed

Build ID: I20071101-2000 Steps To Reproduce: Following code spaceCount = 2 * (spaceCount / 2); incorrectly converted into spaceCount = 2 * spaceCount / 2; As you understand, when spaceCount is odd, these two expressions have different value. ;-) More information:

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/ExpressionsFix.java