Forbid static method call

"Leif Bladt (Inxmail GmbH)" <[email protected]> Thu, 26 Nov 2009 16:44:39 +0100
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
Hi,

I wonder if I can forbid the call of some specific static methods, like the JOptionPane.show... methods. I tried it with the IllegalToken check, but I couldn't manage to get it filtered on the needed method names. In fact it warned me about every single method call in the project :)

<module name="IllegalToken">
	<property name="tokens" value="METHOD_CALL"/>
</module>

The DescendantToken check also didn't work. So is there as possibility I've overseen to get it done?


Tahnks for your help,
Leif


-- 
Software Developer

------------------------------------------------------

Inxmail GmbH
Wentzingerstr. 21, 79106 Freiburg, Germany
Tel: +49 761 296979-0, Fax: -9
[email protected], www.inxmail.de


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july