History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18807
Type: New Feature New Feature
Status: Open Open
Assignee: Olesya Smirnova
Reporter: Mihai Danila
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Conform Expression Wrapping to Sun Coding Guidelines

Created: 19 Jul 08 06:06   Updated: 21 Jul 08 12:31
Component/s: Code Formatting and Code Style

Environment: Windows; though I suspect ALL.

Build: 7,590
Severity: High


 Description  « Hide
This has been outstanding forever. When creating wrapping expression, either through a code reformatting operation with line wrapping enabled or by breaking a string down into two strings by simply hitting Enter inside a string, the Sun Coding Guidelines have a clear preference to break BEFORE the operator.

In other words, prefer this:

callMe("A multiline "
+ "string");

over this:

callMe("A multiline " +
"string");

See http://java.sun.com/docs/codeconv/html/CodeConventions.doc3.html#248 for details.

One should be able to actuate this behavior through a config option and it should be default behavior IMO.

The chosen severity class reflects my strict preference to follow the guidelines where they exist.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.