Re: Forbid static method call
Oliver Burn <[email protected]> Mon, 30 Nov 2009 21:43:03 +1100
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Your best bet if you want a 100% reliable way of preventing calls to certain static methods is to use PMD as this tool provides access to the type information that is required. On Fri, Nov 27, 2009 at 19:39, Leif Bladt (Inxmail GmbH) < [email protected]> wrote: > Hi Niels, > > Am 27.11.2009 um 09:20 schrieb Niels Stargardt: > > Hi at least I would assert that you must set the format option, but I'm > > not familiar with the check. > > The IllegalToken has no format property, though the IllegalTokenText has > it. I also tried it with the IllegalTokenText check, but with no success. I > couldn't figure out, how the format string has to be defined to filter > METHOD_CALL tokens. > > > 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 > _______________________________________________ > Checkstyle-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/checkstyle-user > ------------------------------------------------------------------------------ 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 _______________________________________________ Checkstyle-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/checkstyle-user