java - Restriction on J2SE inbuilt method -


as per company rule can not use stop() of thread

for want when use stop(), eclipse should shows error/warning difficult achieve using checkstyle , pmd.

you have consider using findbugs instead of checkstyle or pmd, because need know runtime type of variable in order see whether instance of thread or not.

afaik, none of tools has built-in detector/check thread.stop() rule, have write custom findbugs detector.

a simpler way of achieving (but not suitable enterprise development environment) check occurrences of thread.currentthread().stop() , using checkstyle , regular expression. let me know in comments if example that.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -