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.

Bug 133509

Summary: Change in blank line insertion (6.1 RC2 )
Product: editor Reporter: stevenable <stevenable>
Component: Formatting & IndentationAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description stevenable 2008-04-21 19:10:17 UTC
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. :(
Comment 1 Jiri Prox 2008-04-22 07:48:53 UTC
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 ***