A reminder:

if, if-else, for, while, etc. type statements should always include
braces.  This is according to Sun's recommendations which are the
default for submissions to Turbine.  Please note that we have deviated
in that opening braces are on the line following the statement.

http://java.apache.org/turbine/code-standards.html

The only case I can see where not following this standard improves
readability is where a single line if statement is about the only
statement within a block.

catch (...)
{
    if (x != null)
        Log.debug(x.toString());
}

But that is just my opinion.  Please follow the standards.

John McNally


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to