You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/04/03 17:37:21 UTC

svn commit: r644369 - in /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility: ConvertUtils.java PropertyDescriptorPlus.java

Author: dims
Date: Thu Apr  3 08:37:20 2008
New Revision: 644369

URL: http://svn.apache.org/viewvc?rev=644369&view=rev
Log:
- make it explicit that we are returning null
- we already return from the method if the propValue is null.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/ConvertUtils.java
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/PropertyDescriptorPlus.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/ConvertUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/ConvertUtils.java?rev=644369&r1=644368&r2=644369&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/ConvertUtils.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/ConvertUtils.java Thu Apr  3 08:37:20 2008
@@ -273,7 +273,7 @@
         }
 
         if (arg == null) {
-            return arg;
+            return null;
         }
 
         // The arg may be an array or List 

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/PropertyDescriptorPlus.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/PropertyDescriptorPlus.java?rev=644369&r1=644368&r2=644369&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/PropertyDescriptorPlus.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/utility/PropertyDescriptorPlus.java Thu Apr  3 08:37:20 2008
@@ -185,7 +185,7 @@
         } catch (RuntimeException e) {
             
             if (DEBUG_ENABLED) {
-                String propClass = (propValue == null) ? "null" : propValue.getClass().getName();
+                String propClass = propValue.getClass().getName();
                 log.debug("An exception occurred while attempting to set a property on " +
                           targetBean.getClass().getName());
                 log.debug("The setter method is " + writeMethod );



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org