Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 449418 - 'Convert to if-!-return' Quick Assist and curly braces
Summary: 'Convert to if-!-return' Quick Assist and curly braces
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.4.1   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-31 03:44 EDT by leokom leokom CLA
Modified: 2014-10-31 10:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leokom leokom CLA 2014-10-31 03:44:26 EDT
SCENARIO:

Use Convert to 'if-!-return' Quick Assist


EXPECTED:
if statement which contains return statement has curly braces around the return;

ACTUALLY:
Curly braces are missing. Most modern code conventions require curly braces for single-statement if.
Comment 1 Dani Megert CLA 2014-10-31 10:23:05 EDT
You can either enable the save action to add the braces on save, or do a clean up later.