Clean-up - no functional change
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 29 Oct 2009 10:58:49 +0000 (10:58 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 29 Oct 2009 10:58:49 +0000 (10:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@830890 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

index dd8bf54..86c7aae 100644 (file)
@@ -75,7 +75,7 @@ public class JreMemoryLeakPreventionListener implements LifecycleListener {
             
             /*
              * Several components end up opening JarURLConnections without first
-             * disabling chaching. This effectively locks the file. Whilst more
+             * disabling caching. This effectively locks the file. Whilst more
              * noticeable and harder to ignore on Windows, it affects all
              * operating systems.
              * 
@@ -88,7 +88,7 @@ public class JreMemoryLeakPreventionListener implements LifecycleListener {
             try {
                 // Doesn't matter that this JAR doesn't exist - just as long as
                 // the URL is well-formed
-                URL url = new URL("jar:file://dummy.jar!/dummy.txt");
+                URL url = new URL("jar:file://dummy.jar!/");
                 URLConnection uConn = url.openConnection();
                 uConn.setDefaultUseCaches(false);
             } catch (MalformedURLException e) {