Confirmed users
586
edits
(→Java: add single-line braces) |
(add new section) |
||
| Line 35: | Line 35: | ||
** Don't restrict yourself to 80-character lines. Java code tends to be long horizontally, so use appropriate judgement when wrapping. Avoid deep indents on wrapping. Note that aligning the wrapped part of a line with some previous part of the line (rather than just using a fixed indent) may require shifting the code every time the line changes, resulting in spurious whitespace changes. | ** Don't restrict yourself to 80-character lines. Java code tends to be long horizontally, so use appropriate judgement when wrapping. Avoid deep indents on wrapping. Note that aligning the wrapped part of a line with some previous part of the line (rather than just using a fixed indent) may require shifting the code every time the line changes, resulting in spurious whitespace changes. | ||
* The [http://source.android.com/source/code-style.html Android Coding Style] has some useful guidelines too. | * The [http://source.android.com/source/code-style.html Android Coding Style] has some useful guidelines too. | ||
== Java Idioms == | |||