Project: JDT
Bug 134985 [clean up][expressions] Remove parenthesis chages types of == expressions
Reported: 2006-04-05 05:27:53 | Status: resolved fixed

I20060331-2000 Given: public boolean foo(String s1, String s2, boolean b) { return b == (s1 == s2); } Run 'Clean Up->Use parenthesis->Only where necessary is: return b == s1 == s2; Should: return b == (s1 == s2);

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