Re: Forbid static method call

Niels Stargardt <[email protected]> Thu, 26 Nov 2009 19:39:52 +0100
Newsgroups gmane.comp.java.audit.checkstyle.user
Organization PPI Financial Systems
Message-ID <[email protected]>
Hi
Am 26.11.2009 16:44, Leif Bladt (Inxmail GmbH) schrieb:
> 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
why you don't use the regexp-check?

Regards
Niels

------------------------------------------------------------------------------
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