[jboss-cvs] JBossAS SVN: r101620 - projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/explicit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Feb 28 16:07:10 EST 2010


Author: alesj
Date: 2010-02-28 16:07:09 -0500 (Sun, 28 Feb 2010)
New Revision: 101620

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/explicit/DeclaredStructure.java
Log:
Reformat code a bit, javadocs.

Modified: projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/explicit/DeclaredStructure.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/explicit/DeclaredStructure.java	2010-02-28 17:32:01 UTC (rev 101619)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/main/java/org/jboss/deployers/vfs/plugins/structure/explicit/DeclaredStructure.java	2010-02-28 21:07:09 UTC (rev 101620)
@@ -40,6 +40,7 @@
  * the defining structure.
  * 
  * @author Scott.Stark at jboss.org
+ * @author <a href="jbailey at redhat.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
 public class DeclaredStructure extends AbstractVFSArchiveStructureDeployer
@@ -74,9 +75,7 @@
    protected boolean hasValidSuffix(String name)
    {
       int idx = name.lastIndexOf('.');
-      if (idx == -1)
-         return false;
-      return suffixes.contains(name.substring(idx).toLowerCase());
+      return idx != -1 && suffixes.contains(name.substring(idx).toLowerCase());
    }
 
    public boolean doDetermineStructure(StructureContext structureContext) throws DeploymentException
@@ -129,7 +128,7 @@
     * @param structureContext the context
     * @throws IOException if errors occur during mounting
     */
-   private void mountChildren(StructureContext structureContext) throws IOException
+   protected void mountChildren(StructureContext structureContext) throws IOException
    {
       final StructureMetaData structureMetaData = structureContext.getMetaData();
       final VirtualFile structureRoot = structureContext.getRoot();




More information about the jboss-cvs-commits mailing list