Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=44389
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 11 Apr 2008 22:34:45 +0000 (22:34 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 11 Apr 2008 22:34:45 +0000 (22:34 +0000)
Make nested class static so it doesn't hold a reference to the ApplciationContext instance.

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

java/org/apache/catalina/core/ApplicationContext.java

index 43708d7..eb4db27 100644 (file)
@@ -964,7 +964,7 @@ public class ApplicationContext
      * Internal class used as thread-local storage when doing path
      * mapping during dispatch.
      */
-    private final class DispatchData {
+    private static final class DispatchData {
 
         public MessageBytes uriMB;
         public MappingData mappingData;