Better way of prohibit a method call

Macarse <[email protected]> Wed, 29 May 2013 12:36:52 -0300
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <CAB-cC=JMKGHnM_yPxPdVYsg==ZHpt=B9STsy3Xgva1MLQT24cg@mail.gmail.com>
Hello

I have added checkstyle to my maven build to avoid developer to use
certain method.
The explanation of what I have done is here:
http://stackoverflow.com/a/16777162/119895

Is there a better way to check method calls than using a regex?

Thanks!

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1