chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmpas...@apache.org
Subject svn commit: r1392688 - /chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/commons/impl/AtomPubConverter.java
Date Mon, 01 Oct 2012 23:14:26 GMT
Author: jmpascal
Date: Mon Oct  1 23:14:25 2012
New Revision: 1392688

URL: http://svn.apache.org/viewvc?rev=1392688&view=rev
Log:
Unable to parse Float or Double value. Use string value instead.

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/commons/impl/AtomPubConverter.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/commons/impl/AtomPubConverter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/commons/impl/AtomPubConverter.java?rev=1392688&r1=1392687&r2=1392688&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/commons/impl/AtomPubConverter.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/commons/impl/AtomPubConverter.java
Mon Oct  1 23:14:25 2012
@@ -387,8 +387,8 @@ public class AtomPubConverter {
 				List<BigDecimal> propertyValues = null;
 				if (values != null) {
 					propertyValues = new ArrayList<BigDecimal>();
-					for (String obj : values) {
-						propertyValues.add(BigDecimal.valueOf(Long.parseLong(obj)));
+					for (String obj : values) { 
+						propertyValues.add(new BigDecimal(obj));
 					}
 				}
 				((PropertyDecimalImpl) property).setValues(propertyValues);



Mime
View raw message