axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r808279 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Date Thu, 27 Aug 2009 04:44:58 GMT
Author: amilas
Date: Thu Aug 27 04:44:58 2009
New Revision: 808279

URL: http://svn.apache.org/viewvc?rev=808279&view=rev
Log:
apply the suggestion to fixe the issue AXIS2-4476

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java?rev=808279&r1=808278&r2=808279&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/BeanUtil.java
Thu Aug 27 04:44:58 2009
@@ -362,7 +362,14 @@
                             continue;
 
                         Object partObj;
+                        boolean isNil = false;
                         if (attribute != null) {
+                            String nilValue = attribute.getAttributeValue();
+                            if ("true".equals(nilValue) || "1".equals(nilValue)) {
+                                isNil = true;
+                            }
+                        }
+                        if (isNil) {
                             partObj = null;
                         } else {
                             if (SimpleTypeMapper.isSimpleType(parameters)) {



Mime
View raw message