commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r1077934 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java
Date Fri, 04 Mar 2011 13:30:35 GMT
Author: scolebourne
Date: Fri Mar  4 13:30:35 2011
New Revision: 1077934

URL: http://svn.apache.org/viewvc?rev=1077934&view=rev
Log:
Document mutability of UTC constant, which isn't ideal

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java?rev=1077934&r1=1077933&r2=1077934&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/time/DateUtils.java Fri
Mar  4 13:30:35 2011
@@ -54,6 +54,8 @@ public class DateUtils {
 
     /**
      * The UTC time zone (often referred to as GMT).
+     * Since a {@code TimeZone} is mutable and this is a "constant", it is
+     * essential that this object is not altered.
      */
     public static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("GMT");
     /**



Mime
View raw message