Fix Eclipse warnings / remove unused code
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Jun 2011 18:41:42 +0000 (18:41 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Jun 2011 18:41:42 +0000 (18:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1138126 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/valves/AccessLogValve.java

index 2207b8c..6082394 100644 (file)
@@ -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<String, Cache> formatCache = new HashMap<String, Cache>();
 
         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<DateFormatCache> localDateCache =
             new ThreadLocal<DateFormatCache>() {
+        @Override
         protected DateFormatCache initialValue() {
             return new DateFormatCache(localCacheSize, globalDateCache);
         }