jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r450895 - /jackrabbit/trunk/jcr-server/client/src/java/org/apache/jackrabbit/webdav/client/methods/SubscribeMethod.java
Date Thu, 28 Sep 2006 15:26:24 GMT
Author: angela
Date: Thu Sep 28 08:26:23 2006
New Revision: 450895

URL: http://svn.apache.org/viewvc?view=rev&rev=450895
Log:
SubscriptionDiscovery.getValue returns array of Subscriptions and not a list.

Modified:
    jackrabbit/trunk/jcr-server/client/src/java/org/apache/jackrabbit/webdav/client/methods/SubscribeMethod.java

Modified: jackrabbit/trunk/jcr-server/client/src/java/org/apache/jackrabbit/webdav/client/methods/SubscribeMethod.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jcr-server/client/src/java/org/apache/jackrabbit/webdav/client/methods/SubscribeMethod.java?view=diff&rev=450895&r1=450894&r2=450895
==============================================================================
--- jackrabbit/trunk/jcr-server/client/src/java/org/apache/jackrabbit/webdav/client/methods/SubscribeMethod.java
(original)
+++ jackrabbit/trunk/jcr-server/client/src/java/org/apache/jackrabbit/webdav/client/methods/SubscribeMethod.java
Thu Sep 28 08:26:23 2006
@@ -28,6 +28,7 @@
 import org.apache.jackrabbit.webdav.observation.SubscriptionInfo;
 import org.apache.jackrabbit.webdav.observation.SubscriptionDiscovery;
 import org.apache.jackrabbit.webdav.observation.ObservationConstants;
+import org.apache.jackrabbit.webdav.observation.Subscription;
 import org.apache.commons.httpclient.Header;
 import org.apache.commons.httpclient.HttpMethodBase;
 import org.apache.commons.httpclient.HttpState;
@@ -35,7 +36,6 @@
 import org.w3c.dom.Element;
 
 import java.io.IOException;
-import java.util.List;
 
 /**
  * <code>SubscribeMethod</code>...
@@ -164,7 +164,7 @@
             Element sdElem = DomUtil.getChildElement(root, SUBSCRIPTIONDISCOVERY.getName(),
SUBSCRIPTIONDISCOVERY.getNamespace());
 
             SubscriptionDiscovery sd = SubscriptionDiscovery.createFromXml(sdElem);
-            if (!((List)sd.getValue()).isEmpty()) {
+            if (((Subscription[])sd.getValue()).length > 0) {
                 subscriptionDiscovery = sd;
                 return true;
             } else {



Mime
View raw message