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
Post a Comment