cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1429984 - /cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanTypeInfo.java
Date Mon, 07 Jan 2013 20:05:04 GMT
Author: dkulp
Date: Mon Jan  7 20:05:03 2013
New Revision: 1429984

URL: http://svn.apache.org/viewvc?rev=1429984&view=rev
Log:
Remove some redundant checks.  Minor cleanup

Modified:
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanTypeInfo.java

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanTypeInfo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanTypeInfo.java?rev=1429984&r1=1429983&r2=1429984&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanTypeInfo.java
(original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanTypeInfo.java
Mon Jan  7 20:05:03 2013
@@ -275,12 +275,10 @@ public class BeanTypeInfo {
                 // do nothing
             } else if (beanClass == Object.class || beanClass == Throwable.class) {
                 // do nothing
-            } else if (beanClass == Throwable.class) {
-                // do nothing
-            } else if (Throwable.class.isAssignableFrom(beanClass)) {
-                beanInfo = Introspector.getBeanInfo(beanClass, Throwable.class);
             } else if (RuntimeException.class.isAssignableFrom(beanClass)) {
                 beanInfo = Introspector.getBeanInfo(beanClass, RuntimeException.class);
+            } else if (Exception.class.isAssignableFrom(beanClass)) {
+                beanInfo = Introspector.getBeanInfo(beanClass, Exception.class);
             } else if (Throwable.class.isAssignableFrom(beanClass)) {
                 beanInfo = Introspector.getBeanInfo(beanClass, Throwable.class);
             } else {



Mime
View raw message