[jboss-cvs] JBossAS SVN: r93582 - projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/policy.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Sep 16 02:26:11 EDT 2009


Author: jason.greene at jboss.com
Date: 2009-09-16 02:26:11 -0400 (Wed, 16 Sep 2009)
New Revision: 93582

Modified:
   projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/policy/VFSClassLoaderPolicy.java
Log:
Call toString() once


Modified: projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/policy/VFSClassLoaderPolicy.java
===================================================================
--- projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/policy/VFSClassLoaderPolicy.java	2009-09-16 06:17:27 UTC (rev 93581)
+++ projects/jboss-cl/branches/Branch_2_0/classloading-vfs/src/main/java/org/jboss/classloading/spi/vfs/policy/VFSClassLoaderPolicy.java	2009-09-16 06:26:11 UTC (rev 93582)
@@ -597,20 +597,21 @@
       String path = ClassLoaderUtils.classNameToPath(className);
       VirtualFile root = findRoot(path);
       Manifest manifest = null;
-      URL rootURL = null;
+      String rootURL = null;
+
       if (root != null)
       {
          try
          {
-            rootURL = root.toURL();
-            manifest = manifestCache.get(rootURL.toString());
+            rootURL = root.toURL().toString();
+            manifest = manifestCache.get(rootURL);
             if (manifest == null)
             {
                manifest = VFSUtils.getManifest(root);
                if (manifest == null)
-                  manifestCache.put(rootURL.toString(), NO_MANIFEST);
+                  manifestCache.put(rootURL, NO_MANIFEST);
                else
-                  manifestCache.put(rootURL.toString(), manifest);
+                  manifestCache.put(rootURL, manifest);
             }
             
             if (manifest == NO_MANIFEST)




More information about the jboss-cvs-commits mailing list