From 730aef4d1e95df2571f33ce8692749958c4f47d2 Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Wed, 9 Jul 2008 17:10:46 +0000 Subject: [PATCH] make local and remote info final git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@675260 13f79535-47bb-0310-9956-ffa450edef68 --- .../activemq/network/DemandSubscription.java | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java b/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java index 6dea9743d0..65bb8a403e 100644 --- a/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java +++ b/activemq-core/src/main/java/org/apache/activemq/network/DemandSubscription.java @@ -29,8 +29,8 @@ import org.apache.activemq.command.ConsumerInfo; * @version $Revision: 1.1 $ */ public class DemandSubscription { - private ConsumerInfo remoteInfo; - private ConsumerInfo localInfo; + private final ConsumerInfo remoteInfo; + private final ConsumerInfo localInfo; private Set remoteSubsIds = new CopyOnWriteArraySet(); private AtomicInteger dispatched = new AtomicInteger(0); @@ -104,25 +104,11 @@ public class DemandSubscription { 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; - } - + } }