[weld-commits] Weld SVN: r5997 - core/trunk/impl/src/main/java/org/jboss/weld/bean.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Thu Mar 4 03:55:17 EST 2010


Author: nickarls
Date: 2010-03-04 03:55:17 -0500 (Thu, 04 Mar 2010)
New Revision: 5997

Modified:
   core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerField.java
   core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerMethod.java
Log:
More informative toString() for producers

Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerField.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerField.java	2010-03-04 08:34:37 UTC (rev 5996)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerField.java	2010-03-04 08:55:17 UTC (rev 5997)
@@ -131,6 +131,12 @@
                return field.get(InterceptionUtils.getRawInstance(getReceiver(creationalContext)));
             }
             
+            @Override
+            public String toString() 
+            {
+              return field.toString();
+            }
+            
          });
          checkProducerField();
       }

Modified: core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerMethod.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerMethod.java	2010-03-04 08:34:37 UTC (rev 5996)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bean/ProducerMethod.java	2010-03-04 08:55:17 UTC (rev 5997)
@@ -148,8 +148,12 @@
                }
             }
             
+            @Override
+            public String toString() 
+            {
+              return method.toString();
+            }
             
-            
          });
       }
    }



More information about the weld-commits mailing list