[jboss-cvs] JBossAS SVN: r93990 - projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/context/file.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 24 10:04:47 EDT 2009


Author: alesj
Date: 2009-09-24 10:04:47 -0400 (Thu, 24 Sep 2009)
New Revision: 93990

Modified:
   projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java
Log:
Optimize handler creation.

Modified: projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java
===================================================================
--- projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java	2009-09-24 13:51:49 UTC (rev 93989)
+++ projects/vfs/branches/Branch_2_1/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java	2009-09-24 14:04:47 UTC (rev 93990)
@@ -331,16 +331,15 @@
       {
          handler = createLinkHandler(parent, file, null);
       }
-      else if (parent != null && exists(file) == false)
-      {
-         // See if we can resolve this to a link in the parent
-         if (parent instanceof FileHandler)
-            handler = ((FileHandler) parent).getChildLink(file.getName());
-      }
       else if (exists(file))
       {
          handler = new FileHandler(this, parent, file, uri);
       }
+      else
+      {
+         if (parent != null && parent instanceof FileHandler)
+            handler = ((FileHandler) parent).getChildLink(file.getName());
+      }
       return handler;
    }
 




More information about the jboss-cvs-commits mailing list