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 ke...@apache.org on 2007/10/09 13:57:36 UTC
svn commit: r583121 -
/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/ConverterUtil.java
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