Bug 278785 - [clean up] Include 'continue' and 'break' in "Use blocks..." code style
Summary: [clean up] Include 'continue' and 'break' in "Use blocks..." code style
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-02 10:37 EDT by Simon Archer CLA
Modified: 2009-06-02 11:03 EDT (History)
1 user (show)

See Also:


Attachments
Screen shot. (30.77 KB, image/png)
2009-06-02 10:37 EDT, Simon Archer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Archer CLA 2009-06-02 10:37:53 EDT
Created attachment 138003 [details]
Screen shot.

Please include 'continue' and 'break' in the Additional Save Actions's "Use blocks..." Code Style setting. See the screen shot.

My reasoning for this is that both these keywords cause execution to jump out of the current block so there cannot be any additional lines for which using braces would be desirable.  In other words 'continue' and 'break' are terminating keywords, just like 'return' and 'throw'.

Now that we have 'return', 'throw', 'continue' and 'break', it might be good to have these listed as separate checkbox choices since people might want to pick and choose.  Personally I'm happy to have 'continue' and 'break' added directly to the rule, leaving the UI unchanged.