logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1528139 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java
Date Tue, 01 Oct 2013 16:31:48 GMT
Author: ggregory
Date: Tue Oct  1 16:31:48 2013
New Revision: 1528139

URL: http://svn.apache.org/r1528139
Log:
Better ivar name (it's a String)

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java?rev=1528139&r1=1528138&r2=1528139&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/DatePatternConverter.java
Tue Oct  1 16:31:48 2013
@@ -93,7 +93,7 @@ public final class DatePatternConverter 
     /**
      * Date format.
      */
-    private String cachedDate;
+    private String cachedDateString;
 
     private long lastTimestamp;
 
@@ -174,10 +174,10 @@ public final class DatePatternConverter 
         synchronized (this) {
             if (timestamp != lastTimestamp) {
                 lastTimestamp = timestamp;
-                cachedDate = simpleFormat.format(timestamp);
+                cachedDateString = simpleFormat.format(timestamp);
             }
         }
-        output.append(cachedDate);
+        output.append(cachedDateString);
     }
 
     /**



Mime
View raw message