activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r646564 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
Date Wed, 09 Apr 2008 22:18:17 GMT
Author: rajdavies
Date: Wed Apr  9 15:18:16 2008
New Revision: 646564

URL: http://svn.apache.org/viewvc?rev=646564&view=rev
Log:
Fix getDestinations()

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java?rev=646564&r1=646563&r2=646564&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
Wed Apr  9 15:18:16 2008
@@ -314,9 +314,9 @@
     }
 
     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);



Mime
View raw message