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 114702 - Lines After Class Header - the main class header and anonymous class should be separately controllable for
Summary: Lines After Class Header - the main class header and anonymous class should b...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
: 155414 (view as bug list)
Depends on:
Reported: 2007-09-05 01:09 UTC by shche123
Modified: 2008-12-16 16:36 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description shche123 2007-09-05 01:09:16 UTC
The setting 'Tools | Options | Java Code | Formatting | Category 'Blank 
Lines' | After Class Header' controls the number of newlines inserted. 
By default, it is set to 1, which is why the extra line is added. It can 
be set to '0' to avoid the extra line. 

The setting affects both the main class header and anonymous class 
headers; if you feel they should be separately  controllable, you may 
want to file a request-for-enhancement at 


Leonid Shchervinsky wrote: 
> Reformat Code option adds an extra line within an anonimous inner class, and 
> I believe that it should not. 
> Thanks 
>         app.addWindowListener(new WindowAdapter() { 
>             public void windowClosing(WindowEvent e) { 
>                 System.exit(0); 
>             } 
>         }); 
Comment 1 Peter Pis 2007-09-07 19:56:29 UTC
Reassigning to "java".
Comment 2 Jiri Prox 2008-04-11 00:52:06 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 3 Jiri Prox 2008-12-16 16:36:43 UTC
*** Issue 155414 has been marked as a duplicate of this issue. ***