From a4212ad6cdd4456b7f26f7645e8a0be7b5c4fde5 Mon Sep 17 00:00:00 2001 From: Dawid Jenczewski Date: Fri, 13 Dec 2024 16:37:44 +0100 Subject: [PATCH] refactor: replace Map entry to compatible with Java 8 implementation (#10) --- .../java/privmx_endpoint_extra/events/EventDispatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/events/EventDispatcher.java b/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/events/EventDispatcher.java index c7815a9..399d1ec 100644 --- a/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/events/EventDispatcher.java +++ b/privmx-endpoint-extra/src/main/java/com/simplito/java/privmx_endpoint_extra/events/EventDispatcher.java @@ -111,7 +111,7 @@ public void unbind(Object context) { map.entrySet() .stream() .map(entry -> - Map.entry(entry.getKey().split("_")[0], entry.getValue()) + new AbstractMap.SimpleImmutableEntry<>(entry.getKey().split("_")[0], entry.getValue()) ) .filter(entry -> !entry.getValue().isEmpty()) .forEach(entry -> {