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 220009

Summary: Option for wrapping in switch statements
Product: editor Reporter: kazocsaba
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description kazocsaba 2012-10-12 13:46:51 UTC
I would like an option to disable wrapping of case blocks in switch statements so that the formatter will not insert line breaks in the following code:

switch (code) {
  case 200: return "OK";
  case 404: return "Not found";
  default: return Integer.toString(code);
}
Comment 1 Dusan Balek 2013-04-17 06:38:56 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/d9d611f48a0b
Comment 2 Quality Engineering 2013-04-18 02:21:59 UTC
Integrated into 'main-golden', will be available in build *201304172301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d9d611f48a0b
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #220009: Option for wrapping in switch statements - fixed.