Community
Participate
Working Groups
I20100209-2300. Java > Code Style > Formatter settings > Line Wrapping Tab: Function Calls > Qualified invocations: this seems only to work when I set the indentation policy to 'Indent by one'.
Do you have a snippet with which you got this problem?
This a side effect of the fix for bug 264112... The formatter now does not wrap when the indentation is over the wrapped element position. But this should not be done when the element wrapping policy forces to wrap. Typically with the formatter preference page: /** * Qualified invocations */ class Example { int foo(Some a) { return a.getFirst(); } } Selecting a line width for preview = 20, it's OK that the line is not wrapped with default Line wrapping policy 'Wrap when only necessary' but it should be wrapped with 'Wrap all elements, every element on a new line', 'Always wrap first element, others only when necessary', etc. Hence, update summary...
Created attachment 158850 [details] Proposed patch Look at the Function Calls -> Qualified invocations Line Wrapping policy before activating the "smart" wrapping...
Released for 3.6M6 in HEAD stream.
Verified.