chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r891386 - /incubator/chemistry/trunk/chemistry/chemistry-atompub/src/main/java/org/apache/chemistry/atompub/abdera/PropertiesElement.java
Date Wed, 16 Dec 2009 19:06:46 GMT
Author: fguillaume
Date: Wed Dec 16 19:06:46 2009
New Revision: 891386

URL: http://svn.apache.org/viewvc?rev=891386&view=rev
Log:
CMIS-79: fix multiple property XML generation in AtomPub

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-atompub/src/main/java/org/apache/chemistry/atompub/abdera/PropertiesElement.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub/src/main/java/org/apache/chemistry/atompub/abdera/PropertiesElement.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub/src/main/java/org/apache/chemistry/atompub/abdera/PropertiesElement.java?rev=891386&r1=891385&r2=891386&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub/src/main/java/org/apache/chemistry/atompub/abdera/PropertiesElement.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub/src/main/java/org/apache/chemistry/atompub/abdera/PropertiesElement.java
Wed Dec 16 19:06:46 2009
@@ -188,8 +188,8 @@
             return;
         }
         QName qname = propertyQName(propertyType);
-        boolean multi = false;
-        List<String> values = getStringsForValue(value, propertyType, multi);
+        List<String> values = getStringsForValue(value, propertyType,
+                value.getClass().isArray());
         ExtensibleElement el = addExtension(qname);
         el.setAttributeValue(CMIS.PDID, key);
         for (String s : values) {



Mime
View raw message