Fix getDestinations()

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@646564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-04-09 22:18:16 +00:00
parent d38b4f1e57
commit b2fd5d6456
1 changed files with 2 additions and 2 deletions

View File

@ -314,9 +314,9 @@ public class RegionBroker implements Broker {
}
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()];
l.toArray(rc);