directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r265769 - /directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java
Date Thu, 01 Sep 2005 19:20:40 GMT
Author: elecharny
Date: Thu Sep  1 12:20:37 2005
New Revision: 265769

URL: http://svn.apache.org/viewcvs?rev=265769&view=rev
Log:
Synchronized SimpleDateFormat

Modified:
    directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java

Modified: directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java
URL: http://svn.apache.org/viewcvs/directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java?rev=265769&r1=265768&r2=265769&view=diff
==============================================================================
--- directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java
(original)
+++ directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java
Thu Sep  1 12:20:37 2005
@@ -120,6 +120,11 @@
 
     public String toString()
     {
-        return dateFormat.format( new Date( kerberosTime ) );
+    	Date kerberosDate = new Date( kerberosTime );
+    	
+    	synchronized (dateFormat)
+    	{
+    		return dateFormat.format( kerberosDate );
+    	}
     }
 }



Mime
View raw message