Bug 278785

Summary: [clean up] Include 'continue' and 'break' in "Use blocks..." code style
Product: [Eclipse Project] JDT Reporter: Simon Archer <sja.eclipse>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screen shot. none

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.