chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1788276 - in /chemistry/portcmis/trunk/PortCMIS: binding/browser/BrowserBinding.cs binding/browser/json/Json.cs client/ClientImpl.cs
Date Thu, 23 Mar 2017 16:23:06 GMT
Author: fmui
Date: Thu Mar 23 16:23:05 2017
New Revision: 1788276

URL: http://svn.apache.org/viewvc?rev=1788276&view=rev
Log:
CMIS-1020: fixed number serialization issue

Modified:
    chemistry/portcmis/trunk/PortCMIS/binding/browser/BrowserBinding.cs
    chemistry/portcmis/trunk/PortCMIS/binding/browser/json/Json.cs
    chemistry/portcmis/trunk/PortCMIS/client/ClientImpl.cs

Modified: chemistry/portcmis/trunk/PortCMIS/binding/browser/BrowserBinding.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/binding/browser/BrowserBinding.cs?rev=1788276&r1=1788275&r2=1788276&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/binding/browser/BrowserBinding.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/binding/browser/BrowserBinding.cs Thu Mar 23 16:23:05
2017
@@ -517,7 +517,7 @@ namespace PortCMIS.Binding.Browser
             }
             else if (value is BigInteger)
             {
-                return ((BigInteger)value).ToString("#", CultureInfo.InvariantCulture);
+                return ((BigInteger)value).ToString("0", CultureInfo.InvariantCulture);
             }
             else
             {

Modified: chemistry/portcmis/trunk/PortCMIS/binding/browser/json/Json.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/binding/browser/json/Json.cs?rev=1788276&r1=1788275&r2=1788276&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/binding/browser/json/Json.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/binding/browser/json/Json.cs Thu Mar 23 16:23:05 2017
@@ -85,7 +85,7 @@ namespace PortCMIS.Binding.Browser.Json
                 }
                 else
                 {
-                    writer.Write(((Single)value).ToString("#", CultureInfo.InvariantCulture));
+                    writer.Write(((Single)value).ToString("0", CultureInfo.InvariantCulture));
                 }
                 return;
             }
@@ -98,7 +98,7 @@ namespace PortCMIS.Binding.Browser.Json
 
             if (value is BigInteger)
             {
-                writer.Write(((BigInteger)value).ToString("#", CultureInfo.InvariantCulture));
+                writer.Write(((BigInteger)value).ToString("0", CultureInfo.InvariantCulture));
                 return;
             }
 
@@ -117,7 +117,7 @@ namespace PortCMIS.Binding.Browser.Json
             try
             {
                 long longValue = Convert.ToInt64(value);
-                writer.Write(longValue.ToString("#", CultureInfo.InvariantCulture));
+                writer.Write(longValue.ToString("0", CultureInfo.InvariantCulture));
             }
             catch (Exception)
             {

Modified: chemistry/portcmis/trunk/PortCMIS/client/ClientImpl.cs
URL: http://svn.apache.org/viewvc/chemistry/portcmis/trunk/PortCMIS/client/ClientImpl.cs?rev=1788276&r1=1788275&r2=1788276&view=diff
==============================================================================
--- chemistry/portcmis/trunk/PortCMIS/client/ClientImpl.cs (original)
+++ chemistry/portcmis/trunk/PortCMIS/client/ClientImpl.cs Thu Mar 23 16:23:05 2017
@@ -1635,7 +1635,7 @@ namespace PortCMIS.Client.Impl
                     throw new ArgumentException("Number is null!");
                 }
 
-                slb.Add(n.ToString("#", CultureInfo.InvariantCulture));
+                slb.Add(n.ToString("0", CultureInfo.InvariantCulture));
             }
 
             parametersDict[parameterIndex] = slb.ToString();



Mime
View raw message