You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Endre Stølsvik (JIRA)" <ji...@apache.org> on 2015/03/20 13:07:38 UTC
[jira] [Created] (AMQ-5680) MessageBrokerView.getTempQueues() have
test for destination.isTopic() instead of destination.isQueue()
Endre Stølsvik created AMQ-5680:
-----------------------------------
Summary: MessageBrokerView.getTempQueues() have test for destination.isTopic() instead of destination.isQueue()
Key: AMQ-5680
URL: https://issues.apache.org/jira/browse/AMQ-5680
Project: ActiveMQ
Issue Type: Bug
Reporter: Endre Stølsvik
Priority: Minor
The following code is a near-copy of the .getTempTopics() right above - without the change of the "if (destination.isTopic()..." to "if (destination.isQueue()..."
{code}
/**
* Retrieve a set of all TemporaryQueues be used by the Broker
* @return all TemporaryQueues
*/
public Set<ActiveMQTempQueue> getTempQueues(){
Set<ActiveMQTempQueue> result = new HashSet<ActiveMQTempQueue>();
for (ActiveMQDestination destination:getDestinations()){
if (destination.isTopic() && destination.isTemporary()){
result.add((ActiveMQTempQueue) destination);
}
}
return result;
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)