Lars Kühne - 2002-12-27

Logged In: YES

We're way ahead of you :-)

The upcoming version of Checkstyle (release 3.0) will allow
fine grained control over the token types a check is applied
to. Here is a configuration file snippet that should do what
you asked for (untested).

<module name="Checker">
<module name="TreeWalker">
<module name="ParenPad">
<property name="tokens" value="TYPECAST"/>
<property name="option" value="nospace"/>
<module name="ParenPad">
<property name="tokens" value="RPAREN, LPAREN, CTOR_CALL,
<property name="option" value="space"/>
<!-- add more TreeWalker modules here -->

It would be really great if you could try out the current
CVS and tell us if this does what you need.