commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r754457 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/FastDateFormat.java
Date Sat, 14 Mar 2009 14:57:46 GMT
Author: sebb
Date: Sat Mar 14 14:57:45 2009
New Revision: 754457

URL: http://svn.apache.org/viewvc?rev=754457&view=rev
Log:
Document thread-safety of cDefaultPattern

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/FastDateFormat.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/FastDateFormat.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/FastDateFormat.java?rev=754457&r1=754456&r2=754457&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/FastDateFormat.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/time/FastDateFormat.java Sat
Mar 14 14:57:45 2009
@@ -105,7 +105,8 @@
      */
     public static final int SHORT = DateFormat.SHORT;
     
-    private static String cDefaultPattern;
+    //@GuardedBy("this")
+    private static String cDefaultPattern; // lazily initialised by getInstance()
 
     private static final Map cInstanceCache = new HashMap(7);
     private static final Map cDateInstanceCache = new HashMap(7);



Mime
View raw message