Add serializing for Long data type as a integer

This commit is contained in:
Aria 2023-06-14 15:45:56 -07:00
parent 9c82323cfa
commit 81fdc0a8c5

View file

@ -83,7 +83,7 @@ public class XmlRpcStreamWriter {
writer.write ( "</string>" );
writer.write ( VALUE_END_TAG );
}
else if ( value instanceof Integer ) {
else if ( value instanceof Integer || value instanceof Long ) {
writer.write ( VALUE_START_TAG );
writer.write ( "<int>" );
writer.write ( value.toString ( ) );