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 254359 - [81cat] Wrong Enum formatting
Summary: [81cat] Wrong Enum formatting
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-14 08:36 UTC by -Silver-
Modified: 2015-09-02 12:38 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 -Silver- 2015-08-14 08:36:09 UTC
Hi, I'm not sure if I miss some option or it is a bug but during the test I have been not able to preserve an enum like this:

public enum enumeration{A, B, C, D}

It seems (but maybe I miss some config option) that the editor doesn't allow to leave it in a single line and at least split it like this:

public enum enumeration{
    A, B, C, D
}

Could you kindly have a look?
Thanks and best regards,


--
Giuseppe Tino
Comment 1 Dusan Balek 2015-09-02 12:38:58 UTC
Unfortunately, leaving whole enum declaration on a single line is currently unsupported. Perhaps an enhancement for the next version.