Skip to content

Commit 76e0dba

Browse files
committed
Merge pull request #287 from buddycloud/federation_issues
Fixing some issues with fields hiding other fields
2 parents ec809ae + 88a2093 commit 76e0dba

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/get/SubscriptionsGet.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,15 @@
2121

2222
public class SubscriptionsGet extends PubSubElementProcessorAbstract {
2323

24-
private final BlockingQueue<Packet> outQueue;
25-
private ChannelManager channelManager;
26-
2724
private IQ result;
2825
private String node;
2926
private JID actorJid;
3027
private IQ requestIq;
3128
private boolean ephemeral = false;
3229

3330
public SubscriptionsGet(BlockingQueue<Packet> outQueue, ChannelManager channelManager) {
34-
this.outQueue = outQueue;
35-
this.channelManager = channelManager;
36-
}
37-
38-
public void setChannelManager(ChannelManager dataStore) {
39-
channelManager = dataStore;
31+
setOutQueue(outQueue);
32+
setChannelManager(channelManager);
4033
}
4134

4235

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/get/items/NodeItemsGet.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public class NodeItemsGet extends PubSubElementProcessorAbstract {
3636

3737
public static final int MAX_ITEMS_TO_RETURN = 50;
3838

39-
private final BlockingQueue<Packet> outQueue;
40-
4139
private ChannelManager channelManager;
4240
private String node;
4341
private String firstItem;
@@ -56,7 +54,7 @@ public class NodeItemsGet extends PubSubElementProcessorAbstract {
5654
private JID actor;
5755

5856
public NodeItemsGet(BlockingQueue<Packet> outQueue, ChannelManager channelManager) {
59-
this.outQueue = outQueue;
57+
setOutQueue(outQueue);
6058
setChannelManager(channelManager);
6159

6260
this.acceptedElementName = XMLConstants.ITEMS_ELEM;

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/set/SubscribeSet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ public class SubscribeSet extends PubSubElementProcessorAbstract {
4545

4646
public static final String INVALID_NODE_FORMAT = "invalid-node-format";
4747

48-
private final BlockingQueue<Packet> outQueue;
4948
private final ChannelManager channelManager;
5049

5150
public SubscribeSet(BlockingQueue<Packet> outQueue, ChannelManager channelManager) {
52-
this.outQueue = outQueue;
51+
this.setOutQueue(outQueue);
5352
this.channelManager = channelManager;
5453

5554
acceptedElementName = XMLConstants.SUBSCRIBE_ELEM;

0 commit comments

Comments
 (0)