You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/06/21 20:41:42 UTC
svn commit: r1138126 -
/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java
Author: markt
Date: Tue Jun 21 18:41:42 2011
New Revision: 1138126
URL: http://svn.apache.org/viewvc?rev=1138126&view=rev
Log:
Fix Eclipse warnings / remove unused code
Modified:
tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java
Modified: tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?rev=1138126&r1=1138125&r2=1138126&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java Tue Jun 21 18:41:42 2011
@@ -366,8 +366,6 @@ public class AccessLogValve extends Valv
}
}
- private String type;
-
/* Number of cached entries */
private int cacheSize = 0;
@@ -376,11 +374,6 @@ public class AccessLogValve extends Valv
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 Valv
*/
private static final ThreadLocal<DateFormatCache> localDateCache =
new ThreadLocal<DateFormatCache>() {
+ @Override
protected DateFormatCache initialValue() {
return new DateFormatCache(localCacheSize, globalDateCache);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org