mirror of https://github.com/apache/activemq.git
Fix getDestinations()
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d38b4f1e57
commit
b2fd5d6456
|
@ -314,9 +314,9 @@ public class RegionBroker implements Broker {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ActiveMQDestination[] getDestinations() throws Exception {
|
public ActiveMQDestination[] getDestinations() throws Exception {
|
||||||
ArrayList<Destination> l;
|
ArrayList<ActiveMQDestination> l;
|
||||||
|
|
||||||
l = new ArrayList<Destination>(destinations.values());
|
l = new ArrayList<ActiveMQDestination>(getDestinationMap().keySet());
|
||||||
|
|
||||||
ActiveMQDestination rc[] = new ActiveMQDestination[l.size()];
|
ActiveMQDestination rc[] = new ActiveMQDestination[l.size()];
|
||||||
l.toArray(rc);
|
l.toArray(rc);
|
||||||
|
|
Loading…
Reference in New Issue