Re: Forbid static method call
Niels Stargardt <[email protected]> Fri, 27 Nov 2009 09:20:40 +0100
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Organization | PPI Financial Systems |
| Message-ID | <[email protected]> |
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 > > Hi at least I would assert that you must set the format option, but I'm not familiar with the 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