chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1301913 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
Date Sat, 17 Mar 2012 10:40:14 GMT
Author: fmui
Date: Sat Mar 17 10:40:14 2012
New Revision: 1301913

URL: http://svn.apache.org/viewvc?rev=1301913&view=rev
Log:
Browser Binding: fixed a multivalue property bug

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java?rev=1301913&r1=1301912&r2=1301913&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/JSONConverter.java
Sat Mar 17 10:40:14 2012
@@ -1645,6 +1645,7 @@ public class JSONConverter {
     /**
      * Converts properties.
      */
+    @SuppressWarnings("unchecked")
     public static Properties convertProperties(Map<String, Object> json) {
         if (json == null) {
             return null;
@@ -1672,7 +1673,7 @@ public class JSONConverter {
                 Object value = jsonPropertyMap.get(JSON_PROPERTY_VALUE);
                 List<Object> values = null;
                 if (value instanceof List) {
-                    values = (List<Object>) values;
+                    values = (List<Object>) value;
                 } else if (value != null) {
                     values = Collections.singletonList(value);
                 }



Mime
View raw message