Minor change, renamed an inner field
This commit is contained in:
+4
-4
@@ -136,7 +136,7 @@ public class SubscriptionsStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// private List<Subscription> subscriptions = new ArrayList<Subscription>();
|
// private List<Subscription> subscriptions = new ArrayList<Subscription>();
|
||||||
private TreeNode subscriptions = new TreeNode(null);
|
private TreeNode subscriptionsRoot = new TreeNode(null);
|
||||||
|
|
||||||
public void add(Subscription newSubscription) {
|
public void add(Subscription newSubscription) {
|
||||||
List<Token> tokens = new ArrayList<Token>();
|
List<Token> tokens = new ArrayList<Token>();
|
||||||
@@ -147,7 +147,7 @@ public class SubscriptionsStore {
|
|||||||
Logger.getLogger(SubscriptionsStore.class.getName()).log(Level.SEVERE, null, ex);
|
Logger.getLogger(SubscriptionsStore.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
TreeNode current = subscriptions;
|
TreeNode current = subscriptionsRoot;
|
||||||
for (Token token : tokens) {
|
for (Token token : tokens) {
|
||||||
TreeNode matchingChildren;
|
TreeNode matchingChildren;
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ public class SubscriptionsStore {
|
|||||||
//TODO handle the parse exception
|
//TODO handle the parse exception
|
||||||
Logger.getLogger(SubscriptionsStore.class.getName()).log(Level.SEVERE, null, ex);
|
Logger.getLogger(SubscriptionsStore.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
}
|
}
|
||||||
TreeNode current = subscriptions;
|
TreeNode current = subscriptionsRoot;
|
||||||
for (Token token : tokens) {
|
for (Token token : tokens) {
|
||||||
current = current.matchNext(token);
|
current = current.matchNext(token);
|
||||||
if (current == null) {
|
if (current == null) {
|
||||||
@@ -191,7 +191,7 @@ public class SubscriptionsStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public int size() {
|
public int size() {
|
||||||
return subscriptions.size();
|
return subscriptionsRoot.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected List<Token> splitTopic(String topic) throws ParseException {
|
protected List<Token> splitTopic(String topic) throws ParseException {
|
||||||
|
|||||||
Reference in New Issue
Block a user