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 250179 - Formatting class with static enum will add a blank line
Summary: Formatting class with static enum will add a blank line
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-03 13:00 UTC by NwDx
Modified: 2015-02-03 13:00 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NwDx 2015-02-03 13:00:02 UTC
I think that Enum Types need an extra option in the dialog Tools-Editor-Formatting under "Java-> Blank Lines". If you use an Enum as an Inner static Type maybe you don't want that extra blank line:

Before formatting:


public class SomeFactory {

  public static enum Type {
    TXT, XML, DAT
  }




After formatting (with default behavior):

public class SomeFactory {

  public static enum Type {

    TXT, XML, DAT
  }

And a one-liner will be much better to read...