Remove dead code and correct comment about
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 24 Jun 2011 05:33:35 +0000 (05:33 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 24 Jun 2011 05:33:35 +0000 (05:33 +0000)
thread-safetyness.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1139157 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/juli/DateFormatCache.java

index 6e47633..e8d04b7 100644 (file)
@@ -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;