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 - Option for wrapping in switch statements
Summary: Option for wrapping in switch statements
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-12 13:46 UTC by kazocsaba
Modified: 2013-04-18 02:21 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 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.