[jboss-cvs] JBossAS SVN: r76473 - projects/jboss-deployers/trunk/deployers-core-spi/src/main/org/jboss/deployers/spi/attachments/helpers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jul 30 10:33:46 EDT 2008


Author: alesj
Date: 2008-07-30 10:33:46 -0400 (Wed, 30 Jul 2008)
New Revision: 76473

Modified:
   projects/jboss-deployers/trunk/deployers-core-spi/src/main/org/jboss/deployers/spi/attachments/helpers/AbstractMutableAttachments.java
Log:
Better error msg #2.

Modified: projects/jboss-deployers/trunk/deployers-core-spi/src/main/org/jboss/deployers/spi/attachments/helpers/AbstractMutableAttachments.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-core-spi/src/main/org/jboss/deployers/spi/attachments/helpers/AbstractMutableAttachments.java	2008-07-30 14:32:39 UTC (rev 76472)
+++ projects/jboss-deployers/trunk/deployers-core-spi/src/main/org/jboss/deployers/spi/attachments/helpers/AbstractMutableAttachments.java	2008-07-30 14:33:46 UTC (rev 76473)
@@ -75,7 +75,7 @@
       if (result == null)
          return null;
       if (expectedType.isInstance(result) == false)
-         throw new IllegalArgumentException("Removed attachment not of the same type: expected=" + expectedType + ", previous=" + result);      
+         throw new IllegalArgumentException("Removed attachment not of the same type: expected=" + expectedType + ", removed=" + result);      
       return expectedType.cast(result);
    }
 




More information about the jboss-cvs-commits mailing list