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.
Since Netbeans 7.0 beta, following regression in autoformatter occurs: After each autoformatting, one more white space is inserted before the open curled brace ("{"). 7.0 RC2 didn't have this bug. NOTE: I observed this behavior already in some older betas of 6.9, but this was fixed afterwards. I don't know the bug ID. = = = = = = = = = = EXAMPLE CODE = = = = = = = = = = public class _NBFormattingRegression { // first "autoformat" private final Runnable r1 = new Runnable() { // <-- !!! @Override public void run() { } }; // second "autoformat" private final Runnable r2 = new Runnable() { // <-- !!! @Override public void run() { } }; // third "autoformat" private final Runnable r3 = new Runnable() { // <-- !!! @Override public void run() { } }; // and to infinity and beyond! ;) }
Already fixed. *** This bug has been marked as a duplicate of bug 191786 ***