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.
Moving from V6.0.1 to V6.1 RC2 and started getting more blank lines in my Java source code. It appears the new formatter adds a blank line after every in-line comment. public class Main { public static void main(String[] args) { int a; int b; // 6.1 RC2 adds blank line after this comment int c; int d; } } When reformatted using Alt-Shift-F, V6.0.1 would keep those lines as shown. But 6.1RC2 adds a blank line apparently due to the comment. Remove the comment and it won't add the blank line. I can find nothing in any of my settings that relate to blank lines and comments and none of the other reported issues appear to be this specific problem. (This is not an item I would have expected to change between releases.) Its annoying and just means I have go back and remove extraneous blank lines. :(
This issue is already fixed. The fix will be released in patch 1 for 6.1 *** This issue has been marked as a duplicate of 131954 ***