[jboss-cvs] JBossAS SVN: r58413 - projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 15 13:32:54 EST 2006


Author: alesj
Date: 2006-11-15 13:32:47 -0500 (Wed, 15 Nov 2006)
New Revision: 58413

Modified:
   projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AttachmentLocator.java
Log:
javadoc

Modified: projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AttachmentLocator.java
===================================================================
--- projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AttachmentLocator.java	2006-11-15 17:39:14 UTC (rev 58412)
+++ projects/microcontainer/trunk/deployers/src/main/org/jboss/deployers/plugins/deployers/helpers/AttachmentLocator.java	2006-11-15 18:32:47 UTC (rev 58413)
@@ -66,15 +66,13 @@
       Object result = search(unit, name);
       if (result == null)
          return null;
-      T attachment = expectedType.cast(result);
-      return attachment;
+      return expectedType.cast(result);
    }
 
    /**
     * Get an attachment of the given type
     * 
     * @param <T> the expected type
-    * @param name the name of the attachment
     * @param type the type
     * @return the attachment or null if not present
     * @throws IllegalArgumentException for a null name or type




More information about the jboss-cvs-commits mailing list