Lars Kühne - 2002-12-27

Logged In: YES
user_id=401384

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>
<module name="ParenPad">
<property name="tokens" value="RPAREN, LPAREN, CTOR_CALL,
SUPER_CTOR_CALL, METHOD_CALL"/>
<property name="option" value="space"/>
</module>
<!-- add more TreeWalker modules here -->
</module>
</module>

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