tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r1139157 - /tomcat/trunk/java/org/apache/juli/DateFormatCache.java
Date Fri, 24 Jun 2011 05:33:36 GMT
Author: rjung
Date: Fri Jun 24 05:33:35 2011
New Revision: 1139157

URL: http://svn.apache.org/viewvc?rev=1139157&view=rev
Log:
Remove dead code and correct comment about
thread-safetyness.

Modified:
    tomcat/trunk/java/org/apache/juli/DateFormatCache.java

Modified: tomcat/trunk/java/org/apache/juli/DateFormatCache.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/juli/DateFormatCache.java?rev=1139157&r1=1139156&r2=1139157&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/juli/DateFormatCache.java (original)
+++ tomcat/trunk/java/org/apache/juli/DateFormatCache.java Fri Jun 24 05:33:35 2011
@@ -37,6 +37,9 @@ import java.util.TimeZone;
  * <p>The cache is not threadsafe. It can be used without synchronization
  * via thread local instances, or with synchronization as a global cache.</p>
  *
+ * <p>The cache can be created with a parent cache to build a cache hierarchy.
+ * Access to the parent cache is threadsafe.</p>
+ *
  * @version $Id$
  */
 
@@ -53,9 +56,6 @@ public class DateFormatCache {
     private DateFormatCache parent;
     private Cache cache;
 
-    /* Cache type, "parent" or "child" */
-    private String type;
-
     /**
      * Replace the millisecond formatting character 'S' by
      * some dummy characters in order to make the resulting
@@ -83,11 +83,6 @@ public class DateFormatCache {
     }
 
     public DateFormatCache(int size, String format, DateFormatCache parent) {
-        if (parent == null) {
-            type = "main";
-        } else {
-            type = "child";
-        }
         cacheSize = size;
         this.format = tidyFormat(format);
         this.parent = parent;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message