From 042be4f97f53575811cd89114a0fe321d1e80d2f Mon Sep 17 00:00:00 2001 From: Chaiporn Jaikaeo Date: Wed, 9 Oct 2019 10:26:36 +0700 Subject: [PATCH] make code compatible with Java 8 --- src/main/java/com/adr/helloiot/ApplicationTopicsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/adr/helloiot/ApplicationTopicsManager.java b/src/main/java/com/adr/helloiot/ApplicationTopicsManager.java index 387d28c..25662ae 100644 --- a/src/main/java/com/adr/helloiot/ApplicationTopicsManager.java +++ b/src/main/java/com/adr/helloiot/ApplicationTopicsManager.java @@ -146,7 +146,7 @@ private void connectionLost(Throwable thrwbl) { } private void distributeMessage(EventMessage message) { - for (var entry: subscriptions.entrySet()) { + for (Map.Entry> entry: subscriptions.entrySet()) { if (MqttTopic.isMatched(entry.getKey(), message.getTopic())) { List subs = entry.getValue(); if (subs != null) {