mirror of https://github.com/apache/activemq.git
Merge pull request #1264 from levrun/enhanced_for_loop_advisory_broker
for loop can be replaced with enhanced for
This commit is contained in:
commit
6b6f5fbe24
|
@ -154,8 +154,7 @@ public class AdvisoryBroker extends BrokerFilter {
|
||||||
// for this newly added consumer.
|
// for this newly added consumer.
|
||||||
if (AdvisorySupport.isConnectionAdvisoryTopic(info.getDestination())) {
|
if (AdvisorySupport.isConnectionAdvisoryTopic(info.getDestination())) {
|
||||||
// Replay the connections.
|
// Replay the connections.
|
||||||
for (Iterator<ConnectionInfo> iter = connections.values().iterator(); iter.hasNext(); ) {
|
for (ConnectionInfo value : connections.values()) {
|
||||||
ConnectionInfo value = iter.next();
|
|
||||||
ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic();
|
ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic();
|
||||||
fireAdvisory(context, topic, value, info.getConsumerId());
|
fireAdvisory(context, topic, value, info.getConsumerId());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue