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.
public boolean foo(int x) { if (10 == x) { return false; } // BUG: applying fix to following looses THIS comment if (20 != x) { // <<<<<<<<< hint "if statement is redundant" return false; } return true; }
Confirmed the defect is present in 8.0.2 release. The transformation works OK in the current dev version; I suppose the behaviour could be improved by fixes for issue #246871 and issue #246059.