directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r171045 - /directory/shared/kerberos/trunk/common/src/java/org/apache/kerberos/messages/value/KerberosTime.java
Date Fri, 20 May 2005 04:38:56 GMT
Author: erodriguez
Date: Thu May 19 21:38:54 2005
New Revision: 171045

URL: http://svn.apache.org/viewcvs?rev=171045&view=rev
Log:
Minor optimization.  Replaced intermediate Date instantiation with long direct from System.

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=171045&r1=171044&r2=171045&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 May 19 21:38:54 2005
@@ -28,8 +28,7 @@
 	private long _localTime;
 
 	public KerberosTime() {
-		Date temp = new Date();
-		_localTime = temp.getTime();
+		_localTime = System.currentTimeMillis();
 	}
 
 	public KerberosTime(long time) {



Mime
View raw message