Bug 476783 - [j2x] always add curly braces around then block
Summary: [j2x] always add curly braces around then block
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.8.4   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-07 06:31 EDT by Jan Koehnlein CLA
Modified: 2015-09-07 06:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Koehnlein CLA 2015-09-07 06:31:05 EDT
There are a couple of problems if we don't, e.g. with exceptions

  void foo(byte[] bytes) {
    if (true) throw new RuntimeException();
    bytes[1] = (byte) 2;
  }

and returns

 if(true) 
    return;
 else
    System.out.println();

See also bug 473561.