openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlmonte...@apache.org
Subject svn commit: r1612262 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
Date Mon, 21 Jul 2014 13:19:50 GMT
Author: jlmonteiro
Date: Mon Jul 21 13:19:49 2014
New Revision: 1612262

URL: http://svn.apache.org/r1612262
Log:
Improve toString() when bean is a proxy (most cases)

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java?rev=1612262&r1=1612261&r2=1612262&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/creational/CreationalContextImpl.java
Mon Jul 21 13:19:49 2014
@@ -371,12 +371,9 @@ public class CreationalContextImpl<T> im
     public String toString()
     {
 
-        final StringBuilder sb = new StringBuilder("CreationalContext{name=");
+        final StringBuilder sb = new StringBuilder("CreationalContext{bean=");
 
-        if (bean != null && bean.getBeanClass() != null)
-        {
-            sb.append(bean.getBeanClass().getSimpleName());
-        }
+        sb.append(bean != null ? bean.toString() : "null");
 
         return sb.append("}").toString();
     }



Mime
View raw message