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 131227 - Option for blank lines "After Anonymous Class Header"
Summary: Option for blank lines "After Anonymous Class Header"
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: Dusan Balek
Keywords: PLAN
Depends on:
Reported: 2008-03-26 19:27 UTC by ghartmann
Modified: 2012-02-22 11:01 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 ghartmann 2008-03-26 19:27:23 UTC
There should be an option for blank lines "After Anonymous Class Header". I use to add a blank line after the class 
header (like NetBeans default option), but I don't like a blank line after the class header of an anonymous class.

The blank line before "@Override" should not be configurable.
public class Test {

    JButton button;

    public void test() {
        button.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                throw new UnsupportedOperationException("Not supported yet.");
Comment 1 ghartmann 2008-03-26 19:28:24 UTC
Sorry: The blank line before "@Override" should BE configurable.
Comment 2 Vitezslav Stejskal 2008-03-27 14:40:15 UTC
Makes sense. Thanks
Comment 3 Vitezslav Stejskal 2008-06-23 14:32:48 UTC
*** Issue 137875 has been marked as a duplicate of this issue. ***
Comment 4 Dusan Balek 2012-02-21 12:49:45 UTC
Fixed in jet-main.
Comment 5 Quality Engineering 2012-02-22 11:01:18 UTC
Integrated into 'main-golden', will be available in build *201202220400* on (upload may still be in progress)
User: Dusan Balek <>
Log: Minor Java formatting improvements (see issues #131227, #192629).