org.codenarc.rule.concurrency
Class SystemRunFinalizersOnExitRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.concurrency.SystemRunFinalizersOnExitRule
class SystemRunFinalizersOnExitRule
extends AbstractAstVisitorRule
Method calls to System.runFinalizersOnExit() should not be allowed. This method is inherently
non-thread-safe, may result in data corruption, deadlock, and may effect parts of the program
far removed from it's call point. It is deprecated, and it's use strongly discouraged.
- author:
- Hamlet D'Arcy
- version:
- $Revision: 343 $ - $Date: 2010-05-05 20:56:06 -0400 (Wed, 05 May 2010) $
Methods inherited from class AbstractRule
|
applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport |
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
SystemRunFinalizersOnExitRule
SystemRunFinalizersOnExitRule()
-
Groovy Documentation