Skip to content

Commit

Permalink
make code compatible with Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
cjaikaeo committed Oct 9, 2019
1 parent 0170a7c commit 042be4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private void connectionLost(Throwable thrwbl) {
}

private void distributeMessage(EventMessage message) {
for (var entry: subscriptions.entrySet()) {
for (Map.Entry<String, List<TopicSubscription>> entry: subscriptions.entrySet()) {
if (MqttTopic.isMatched(entry.getKey(), message.getTopic())) {
List<TopicSubscription> subs = entry.getValue();
if (subs != null) {
Expand Down

0 comments on commit 042be4f

Please sign in to comment.