Groovy Documentation

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

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

class StaticSimpleDateFormatFieldRule
extends AbstractAstVisitorRule

SimpleDateFormat objects should not be used as static fields. SimpleDateFormat are inherently unsafe for multi-threaded use. Sharing a single instance across thread boundaries without proper synchronization will result in erratic behavior of the application.

Authors:
Chris Mair


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation