1 Reply Latest reply on Jun 17, 2009 1:25 AM by clebert.suconic

    Static DateFormat on MessageCounterHelper

    clebert.suconic

      Not a big deal, but I found this while playing with FindBugs (while I was watching TV today :-) )

      management.MessageCounterHelper has a static DateFormat.

      And from DateFormat javadoc:

      http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html


      "DateFormat javadoc" wrote:

      Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.


      :-)