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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org