logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396266 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/RelativeTimePatternConverter.java
Date Tue, 09 Oct 2012 20:03:49 GMT
Author: ggregory
Date: Tue Oct  9 20:03:48 2012
New Revision: 1396266

URL: http://svn.apache.org/viewvc?rev=1396266&view=rev
Log:
Make ivar final.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/RelativeTimePatternConverter.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/RelativeTimePatternConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/RelativeTimePatternConverter.java?rev=1396266&r1=1396265&r2=1396266&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/RelativeTimePatternConverter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/RelativeTimePatternConverter.java
Tue Oct  9 20:03:48 2012
@@ -31,7 +31,7 @@ public class RelativeTimePatternConverte
      * Cached formatted timestamp.
      */
     private long lastTimestamp = Long.MIN_VALUE;
-    private long startTime = ManagementFactory.getRuntimeMXBean().getStartTime();
+    private final long startTime = ManagementFactory.getRuntimeMXBean().getStartTime();
     private String relative;
 
     /**



Mime
View raw message