On 11/20/11 12:02 PM, Aliaksandr Autayeu wrote:
And, although
I would add bracket forcing for "for" and "if" and others similar
statements to the current code formatting standard (as a safety measure I
explained earlier) before reformatting anything, the best example of even
the current code format would be a formatted code base itself.
This is part of the Sun code conventions to which we made a few
exceptions. So we don't need to list this as an exception.
Have a look here:
http://www.oracle.com/technetwork/java/codeconventions-142311.html#431
"Note: if statements always use braces {}. Avoid the following
error-prone form: "
Jörn