Project: JDT
Bug 332019 [quick assist] Exchange operands must add parentheses sometimes
Reported: 2010-12-07 09:03:48 | Status: resolved fixed

I20101206-1800 Exchange operands quick assist must add parentheses sometimes, e.g. when invoked on the second != in these statements: static void foo(int a, long b) { System.out.println(b != 0 != (a == b)); System.out.println(b != 0 != true); }

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AdvancedQuickAssistTest.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/AdvancedQuickAssistProcessor.java