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

Summary: Lines After Class Header - the main class header and anonymous class should be separately controllable for
Product: java Reporter: shche123 <shche123>
Component: SourceAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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 
http://www.netbeans.org/community/issues.html 

regards, 
karthik 

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. ***