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 235477 - Formatting mishandles indents inside case statement
Summary: Formatting mishandles indents inside case statement
Status: RESOLVED DUPLICATE of bug 233894
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-04 02:56 UTC by tommcatt
Modified: 2013-09-04 07:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
After alt+shift+f (10.07 KB, image/png)
2013-09-04 02:56 UTC, tommcatt
Details
Outer brackets work. (8.72 KB, image/png)
2013-09-04 03:00 UTC, tommcatt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tommcatt 2013-09-04 02:56:04 UTC
Created attachment 139633 [details]
After alt+shift+f

A simple if/else not indenting correctly after format when within a case statement. The workaround is to put the entire case clause in brackets. See screenshots.
Comment 1 tommcatt 2013-09-04 03:00:08 UTC
Created attachment 139634 [details]
Outer brackets work.

Encasing the entire case statement in brackets seems to fix the problem but now I have unwanted brackets.
Comment 2 Dusan Balek 2013-09-04 07:51:13 UTC
Already fixed.

*** This bug has been marked as a duplicate of bug 233894 ***