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 216231 - add braces to generated switch
Summary: add braces to generated switch
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-01 06:40 UTC by akobberup
Modified: 2016-07-07 07:48 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 akobberup 2012-08-01 06:40:21 UTC
When using the new hint "Add missing case clauses and the default clause" on a switch that do not have all clauses, it would be awesome if the generated switch had braces for the cases..
Comment 1 Martin Balin 2016-07-07 07:26:37 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 2 akobberup 2016-07-07 07:48:12 UTC
This is still the case in nb. 8.2.

If the user has specified that the prefered codestyle is to have braces on cases in switches, this should be the case on cases generated by the ide.