[jboss-cvs] JBossAS SVN: r75678 - projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/scope.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 11 06:54:31 EDT 2008


Author: alesj
Date: 2008-07-11 06:54:31 -0400 (Fri, 11 Jul 2008)
New Revision: 75678

Modified:
   projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/scope/ScopeKey.java
Log:
javadocs, null check.

Modified: projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/scope/ScopeKey.java
===================================================================
--- projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/scope/ScopeKey.java	2008-07-11 10:43:47 UTC (rev 75677)
+++ projects/jboss-mdr/trunk/src/main/org/jboss/metadata/spi/scope/ScopeKey.java	2008-07-11 10:54:31 UTC (rev 75678)
@@ -182,9 +182,18 @@
       }
       return result;
    }
-   
+
+   /**
+    * Is this parent of key parameter.
+    *
+    * @param key the key parameter
+    * @return true if this is direct parent of key param
+    */
    public boolean isParent(ScopeKey key)
    {
+      if (key == null)
+         throw new IllegalArgumentException("Null key");
+
       // The passed key doesn't have a parent
       if (key.scopes.size() < 2)
          return false;




More information about the jboss-cvs-commits mailing list