jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r448239 - /jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/MergeInfo.java
Date Wed, 20 Sep 2006 15:36:49 GMT
Author: angela
Date: Wed Sep 20 08:36:48 2006
New Revision: 448239

URL: http://svn.apache.org/viewvc?view=rev&rev=448239
Log:
simplify (using DomUtil method)

Modified:
    jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/MergeInfo.java

Modified: jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/MergeInfo.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/MergeInfo.java?view=diff&rev=448239&r1=448238&r2=448239
==============================================================================
--- jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/MergeInfo.java
(original)
+++ jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/version/MergeInfo.java
Wed Sep 20 08:36:48 2006
@@ -169,7 +169,7 @@
         Element mergeElem = DomUtil.createElement(factory, XML_MERGE, NAMESPACE);
         Element source = DomUtil.addChildElement(mergeElem, DavConstants.XML_SOURCE, DavConstants.NAMESPACE);
         for (int i = 0; i < mergeSource.length; i++) {
-            DomUtil.addChildElement(source, DavConstants.XML_HREF, DavConstants.NAMESPACE,
mergeSource[i]);
+            source.appendChild(DomUtil.hrefToXml(mergeSource[i], factory));
         }
         if (isNoAutoMerge) {
             DomUtil.addChildElement(mergeElem, XML_N0_AUTO_MERGE, NAMESPACE);



Mime
View raw message