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 192361

Summary: [70cat][indent] Break statements are not automatically moved inline with or indented from their associated case within a switch.
Product: editor Reporter: esmithbss <esmithbss>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description esmithbss 2010-11-23 18:26:40 UTC
Product Version = NetBeans IDE Dev (Build 201011230001)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01

Current formatting does not move the break statement into line or cleanly indented from it's associated case within a switch statement.  Instead, the current system leaves the break wherever it is entered.

It should be moved either inline with the case, or if all other content in the case is indented, indented within the case.
Comment 1 Dusan Balek 2010-11-24 12:21:48 UTC
Unfortunately, I cannot reproduce the problem in the current dev build. Could
you please provide some additional information (particular test case, any
non-default formatting options, etc.) that could help me to reproduce the
issue? Thanks.