Groovy Documentation

groovy.org.codenarc.rule.concurrency
[Groovy] Class SynchronizedOnStringRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.concurrency.SynchronizedOnStringRule

class SynchronizedOnStringRule
extends AbstractAstVisitorRule

Synchronization on a String field can lead to deadlock because Strings are interned by the JVM and can be shared.

Authors:
Hamlet D'Arcy


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation