Pfft, I much prefer (for readability) the non-brace version where possible.
Lets set our own standard, rather than follow someone elses. Actually, this project is incubator. Do apache require a certain standard? On Mon, Nov 21, 2011 at 8:25 PM, Jörn Kottmann <[email protected]> wrote: > 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
