oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlaid...@apache.org
Subject svn commit: r1370575 - /oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/util/XmlRpcStructFactory.java
Date Tue, 07 Aug 2012 22:26:17 GMT
Author: rlaidlaw
Date: Tue Aug  7 22:26:16 2012
New Revision: 1370575

URL: http://svn.apache.org/viewvc?rev=1370575&view=rev
Log:
OODT-483: changed Long.toBinaryString to Long.toString in method getXmlRpcFileTransferStatus
to prevent NumberFormatException in method getFileTransferStatusFromXmlRpc

Modified:
    oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/util/XmlRpcStructFactory.java

Modified: oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/util/XmlRpcStructFactory.java
URL: http://svn.apache.org/viewvc/oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/util/XmlRpcStructFactory.java?rev=1370575&r1=1370574&r2=1370575&view=diff
==============================================================================
--- oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/util/XmlRpcStructFactory.java
(original)
+++ oodt/trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/util/XmlRpcStructFactory.java
Tue Aug  7 22:26:16 2012
@@ -72,7 +72,7 @@ public final class XmlRpcStructFactory {
     public static Hashtable<String, Object> getXmlRpcFileTransferStatus(
             FileTransferStatus status) {
         Hashtable<String, Object> statusHash = new Hashtable<String, Object>();
-        statusHash.put("bytesTransferred",Long.toBinaryString(status
+        statusHash.put("bytesTransferred",Long.toString(status
                 .getBytesTransferred()));
         statusHash.put("parentProduct", getXmlRpcProduct(status
                 .getParentProduct()));



Mime
View raw message