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

Summary: add braces to generated switch
Product: editor Reporter: akobberup
Component: Hints & AnnotationsAssignee: Milutin Kristofic <mkristofic>
Status: REOPENED ---    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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.