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 252301 - Formatting option for empty method body
Summary: Formatting option for empty method body
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-08 11:52 UTC by mihai.chintoanu
Modified: 2015-05-08 11:52 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 mihai.chintoanu 2015-05-08 11:52:57 UTC
There should be a formatting option for (no) new lines in empty class bodies. Right now, empty class bodies look like this:

public ClassA() {
}

and they should be allowed to look like this:

public ClassA() { }

or this:

public ClassA() {}