Community
Participate
Working Groups
I20061212-0010 The checkboxes for code formatter settings White Space > Insert space: > Control statements > 'return'/'throw' > before parenthesized expression do nothing. When formatting the class below, a space is always added. The preview also does not show a change. In 3.3M3, the option for 'return' worked as expected. public class Foo { public void test() throws Exception { throw(new IllegalStateException()); } int m() { return(1); } protected void tearDown() throws Exception { throw new IllegalStateException(); } int xyz() { return 1; } }
This seems to work fo me in I20061214-1445: In the preferences preview, as well when formatting. Maybe you have some other settings that override that setting? Olivier?
I have 'White Space > Expressions > Parenthesized expressions > before opening parenthesis' checked. If I uncheck that option, then the problem from comment 0 disappears. I don't have a good idea right now how to make such dependencies more visible. OK to close if think it's OK as it is.
Different options might indeed interfere. No way to prevent this kind of side effect. Closing as INVALID.