org.codenarc.rule.concurrency
[Groovy] Class SynchronizedOnThisRule
java.lang.Object
org.codenarc.rule.AbstractRule
org.codenarc.rule.AbstractAstVisitorRule
org.codenarc.rule.concurrency.SynchronizedOnThisRule
class SynchronizedOnThisRule
extends AbstractAstVisitorRule
Synchronized On This Rule - This rule reports uses of the synchronized blocks where
the synchronization reference is 'this'. Doing this effectively makes your
synchronization policy public and modifiable by other objects. To avoid possibilities
of deadlock, it is better to synchronize on internal objects.
- Authors:
- Hamlet D'Arcy
- Version:
- \$Revision: 609 \$ - \$Date: 2011-02-24 13:48:43 -0500 (Thu, 24 Feb 2011) \$
Methods inherited from class AbstractRule
|
applyTo, applyTo, createViolation, createViolation, createViolationForImport, createViolationForImport, getImportsSortedByLineNumber, getName, getPriority, isReady, packageNameForImport, setName, setPriority, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate |
astVisitorClass
Class astVisitorClass
-
name
String name
-
priority
int priority
-
Groovy Documentation