activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r675260 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java
Date Wed, 09 Jul 2008 17:10:47 GMT
Author: rajdavies
Date: Wed Jul  9 10:10:46 2008
New Revision: 675260

URL: http://svn.apache.org/viewvc?rev=675260&view=rev
Log:
make local and remote info final

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java?rev=675260&r1=675259&r2=675260&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java
Wed Jul  9 10:10:46 2008
@@ -29,8 +29,8 @@
  * @version $Revision: 1.1 $
  */
 public class DemandSubscription {
-    private ConsumerInfo remoteInfo;
-    private ConsumerInfo localInfo;
+    private final ConsumerInfo remoteInfo;
+    private final ConsumerInfo localInfo;
     private Set<ConsumerId> remoteSubsIds = new CopyOnWriteArraySet<ConsumerId>();
     private AtomicInteger dispatched = new AtomicInteger(0);
 
@@ -104,25 +104,11 @@
         return localInfo;
     }
 
-    /**
-     * @param localInfo The localInfo to set.
-     */
-    public void setLocalInfo(ConsumerInfo localInfo) {
-        this.localInfo = localInfo;
-    }
-
+    
     /**
      * @return Returns the remoteInfo.
      */
     public ConsumerInfo getRemoteInfo() {
         return remoteInfo;
-    }
-
-    /**
-     * @param remoteInfo The remoteInfo to set.
-     */
-    public void setRemoteInfo(ConsumerInfo remoteInfo) {
-        this.remoteInfo = remoteInfo;
-    }
-
+    }    
 }



Mime
View raw message