velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r510603 - /velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/ComparisonDateTool.java
Date Thu, 22 Feb 2007 17:46:23 GMT
Author: nbubna
Date: Thu Feb 22 09:46:22 2007
New Revision: 510603

URL: http://svn.apache.org/viewvc?view=rev&rev=510603
Log:
use standard Long ctor, to be valid for jdk 1.4 compilation

Modified:
    velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/ComparisonDateTool.java

Modified: velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/ComparisonDateTool.java
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/ComparisonDateTool.java?view=diff&rev=510603&r1=510602&r2=510603
==============================================================================
--- velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/ComparisonDateTool.java
(original)
+++ velocity/tools/trunk/src/java/org/apache/velocity/tools/generic/ComparisonDateTool.java
Thu Feb 22 09:46:22 2007
@@ -120,14 +120,14 @@
     static
     {
         Map units = new LinkedHashMap(8);
-        units.put(MILLISECOND_KEY, Long.valueOf(1));
-        units.put(SECOND_KEY, Long.valueOf(MILLIS_PER_SECOND));
-        units.put(MINUTE_KEY, Long.valueOf(MILLIS_PER_MINUTE));
-        units.put(HOUR_KEY, Long.valueOf(MILLIS_PER_HOUR));
-        units.put(DAY_KEY, Long.valueOf(MILLIS_PER_DAY));
-        units.put(WEEK_KEY, Long.valueOf(MILLIS_PER_WEEK));
-        units.put(MONTH_KEY, Long.valueOf(MILLIS_PER_MONTH));
-        units.put(YEAR_KEY, Long.valueOf(MILLIS_PER_YEAR));
+        units.put(MILLISECOND_KEY, new Long(1));
+        units.put(SECOND_KEY, new Long(MILLIS_PER_SECOND));
+        units.put(MINUTE_KEY, new Long(MILLIS_PER_MINUTE));
+        units.put(HOUR_KEY, new Long(MILLIS_PER_HOUR));
+        units.put(DAY_KEY, new Long(MILLIS_PER_DAY));
+        units.put(WEEK_KEY, new Long(MILLIS_PER_WEEK));
+        units.put(MONTH_KEY, new Long(MILLIS_PER_MONTH));
+        units.put(YEAR_KEY, new Long(MILLIS_PER_YEAR));
         TIME_UNITS = Collections.unmodifiableMap(units);
     }
 



Mime
View raw message