xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Geisert <christian.geis...@isu-gmbh.de>
Subject Re: FOP Style Guide (update)
Date Wed, 08 Jan 2003 13:05:15 GMT
Peter B. West wrote:
> Jeremias Maerki wrote:
> 
>> Since I've made the checkstyle.cfg file an integral part of our style
>> guide I have to bring this up before changing:
>>
>> I'd like to add a line "checkstyle.ignore.braces = yes". This enables
>> one line ifs like the following:

[..]

> if (isEnabled)
>     doOneLiner();
> else
>     return false;
> 
> which is easier to read than
> 
> if (isEnabled()) doOoneLiner();
> else return false;

And what about this:

if (isEnabled())
     doThis();
     doThat();

Yes, I like explicit braces.

Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Mime
View raw message