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

Summary: Formatting option for empty method body
Product: editor Reporter: mihai.chintoanu
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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() {}