[jboss-cvs] JBossAS SVN: r75879 - projects/jboss-deployers/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 16 04:20:24 EDT 2008


Author: alesj
Date: 2008-07-16 04:20:24 -0400 (Wed, 16 Jul 2008)
New Revision: 75879

Modified:
   projects/jboss-deployers/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/MultipleVFSParsingDeployer.java
Log:
Move check up.

Modified: projects/jboss-deployers/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/MultipleVFSParsingDeployer.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/MultipleVFSParsingDeployer.java	2008-07-16 08:19:01 UTC (rev 75878)
+++ projects/jboss-deployers/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/MultipleVFSParsingDeployer.java	2008-07-16 08:20:24 UTC (rev 75879)
@@ -49,13 +49,15 @@
    public MultipleVFSParsingDeployer(Class<T> output, Map<String, Class<?>> mappings, String suffix, Class<?> suffixClass)
    {
       super(output);
+
       if (mappings == null || mappings.isEmpty())
          throw new IllegalArgumentException("Illegal mappings");
+      if (suffix != null && suffixClass == null)
+         throw new IllegalArgumentException("Null suffix class");
+
       this.mappings = mappings;
       setNames(mappings.keySet());
       setSuffix(suffix);
-      if (suffix != null && suffixClass == null)
-         throw new IllegalArgumentException("Null suffix class");
       this.suffixClass = suffixClass;
    }
 




More information about the jboss-cvs-commits mailing list