for loop can be replaced with enhanced for

This commit is contained in:
Aleksei Eraskin 2024-07-19 17:30:12 -07:00
parent ea2b4f817a
commit 2a5194a99b
1 changed files with 1 additions and 2 deletions

View File

@ -154,8 +154,7 @@ public class AdvisoryBroker extends BrokerFilter {
// for this newly added consumer.
if (AdvisorySupport.isConnectionAdvisoryTopic(info.getDestination())) {
// Replay the connections.
for (Iterator<ConnectionInfo> iter = connections.values().iterator(); iter.hasNext(); ) {
ConnectionInfo value = iter.next();
for (ConnectionInfo value : connections.values()) {
ActiveMQTopic topic = AdvisorySupport.getConnectionAdvisoryTopic();
fireAdvisory(context, topic, value, info.getConsumerId());
}