From: markt Date: Tue, 21 Jun 2011 18:41:42 +0000 (+0000) Subject: Fix Eclipse warnings / remove unused code X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b134663dbcb0b0baf4f1d95ab52765ee77f7180e;p=tomcat7.0 Fix Eclipse warnings / remove unused code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138126 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/valves/AccessLogValve.java b/java/org/apache/catalina/valves/AccessLogValve.java index 2207b8c24..6082394c7 100644 --- a/java/org/apache/catalina/valves/AccessLogValve.java +++ b/java/org/apache/catalina/valves/AccessLogValve.java @@ -366,8 +366,6 @@ public class AccessLogValve extends ValveBase implements AccessLog { } } - private String type; - /* Number of cached entries */ private int cacheSize = 0; @@ -376,11 +374,6 @@ public class AccessLogValve extends ValveBase implements AccessLog { private HashMap formatCache = new HashMap(); private DateFormatCache(int size, DateFormatCache parent) { - if (parent == null) { - type = "main"; - } else { - type = "child"; - } cacheSize = size; this.parent = parent; Cache parentCache = null; @@ -429,6 +422,7 @@ public class AccessLogValve extends ValveBase implements AccessLog { */ private static final ThreadLocal localDateCache = new ThreadLocal() { + @Override protected DateFormatCache initialValue() { return new DateFormatCache(localCacheSize, globalDateCache); }