ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r583121 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Date Tue, 09 Oct 2007 11:57:36 GMT
Author: keithc
Date: Tue Oct  9 04:57:36 2007
New Revision: 583121

URL: http://svn.apache.org/viewvc?rev=583121&view=rev
Log:
Changing the order of the if conditions cause there were a couple of if conditions that were
alwaya false (Due to a superclass been ahead during instance of check)


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

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java?rev=583121&r1=583120&r2=583121&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
Tue Oct  9 04:57:36 2007
@@ -1193,14 +1193,14 @@
                 attributeValue = prefix + ":" + attributeValue;
             }
             serializeAnyType("QName", attributeValue, xmlStreamWriter);
+        } else if (value instanceof UnsignedByte) {
+            serializeAnyType("unsignedByte", convertToString((UnsignedByte) value), xmlStreamWriter);
         } else if (value instanceof UnsignedLong) {
             serializeAnyType("unsignedLong", convertToString((UnsignedLong) value), xmlStreamWriter);
-        } else if (value instanceof UnsignedInt) {
-            serializeAnyType("unsignedInt", convertToString((UnsignedInt) value), xmlStreamWriter);
         } else if (value instanceof UnsignedShort) {
             serializeAnyType("unsignedShort", convertToString((UnsignedShort) value), xmlStreamWriter);
-        } else if (value instanceof UnsignedByte) {
-            serializeAnyType("unsignedByte", convertToString((UnsignedByte) value), xmlStreamWriter);
+        } else if (value instanceof UnsignedInt) {
+            serializeAnyType("unsignedInt", convertToString((UnsignedInt) value), xmlStreamWriter);
         } else if (value instanceof PositiveInteger) {
             serializeAnyType("positiveInteger", convertToString((PositiveInteger) value),
xmlStreamWriter);
         } else if (value instanceof NegativeInteger) {



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


Mime
View raw message