Project: JDT
Bug 119251 [quick assist] "Invert if statement" removes parts of condition
Reported: 2005-12-05 10:25:59 | Status: verified fixed

Build id: I20051130-1215 Consider the following code: ------ public class A { { if (!a() && !b() && !c() && !d()) foo(); else bar(); } private void foo() {} private void bar() {} private boolean a() { return false; } private boolean b() { return false; } private boolean c() { return false; } private boolean d() { return false; } } ----------- Call "Invert if statement" on the if. Expression is changed to if ((a()) || (b()))

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