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.
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() { @Override public void actionPerformed(ActionEvent e) { throw new UnsupportedOperationException("Not supported yet."); } }); } }
Sorry: The blank line before "@Override" should BE configurable.
Makes sense. Thanks
*** Issue 137875 has been marked as a duplicate of this issue. ***
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/4849ddcb0167
Integrated into 'main-golden', will be available in build *201202220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4849ddcb0167 User: Dusan Balek <dbalek@netbeans.org> Log: Minor Java formatting improvements (see issues #131227, #192629).