This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In build 201209200001 the hint "Invert if" doesn't undo itself. Example: boolean b; if (b) { } else { } Using "Invert if" on the "if" statement adds a "!" in from of the condition: if (!b) { } else { } Using "Invert if" again on the "if" statement adds a second "!": if (!!b) { } else { } Expected behaviour: the first "!" is removed and the code reverts to the initial state.
*** Bug 218855 has been marked as a duplicate of this bug. ***
Should be better after: http://hg.netbeans.org/jet-main/rev/f8f0c58800b8
Integrated into 'main-golden', will be available in build *201210270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f8f0c58800b8 User: Jan Lahoda <jlahoda@netbeans.org> Log: #218701: optimizing the negated condition in invert if suggestion.