jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r477561 - /jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/SubscriptionDiscovery.java
Date Tue, 21 Nov 2006 07:59:23 GMT
Author: angela
Date: Mon Nov 20 23:59:22 2006
New Revision: 477561

URL: http://svn.apache.org/viewvc?view=rev&rev=477561
Log:
minor improvement

Modified:
    jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/SubscriptionDiscovery.java

Modified: jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/SubscriptionDiscovery.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/SubscriptionDiscovery.java?view=diff&rev=477561&r1=477560&r2=477561
==============================================================================
--- jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/SubscriptionDiscovery.java
(original)
+++ jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/observation/SubscriptionDiscovery.java
Mon Nov 20 23:59:22 2006
@@ -33,7 +33,7 @@
  */
 public class SubscriptionDiscovery extends AbstractDavProperty {
 
-    private Subscription[] subscriptions = new Subscription[0];
+    private final Subscription[] subscriptions;
 
     /**
      * Create a new <code>SubscriptionDiscovery</code> that lists the given
@@ -45,6 +45,8 @@
         super(ObservationConstants.SUBSCRIPTIONDISCOVERY, true);
         if (subscriptions != null) {
             this.subscriptions = subscriptions;
+        } else {
+            this.subscriptions = new Subscription[0];
         }
     }
 
@@ -58,6 +60,8 @@
         super(ObservationConstants.SUBSCRIPTIONDISCOVERY, true);
         if (subscription != null) {
             this.subscriptions = new Subscription[]{subscription};
+        } else {
+            this.subscriptions = new Subscription[0];
         }
     }
 



Mime
View raw message