From 2db14012f897b5a2e777b8f3709507709b4689a0 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Mon, 25 Nov 2024 01:59:16 +0100 Subject: [PATCH] Remove all remaining traces of ImmutableHashMap --- .../engine/notification/NotificationManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java b/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java index d861cad06..496fc4558 100644 --- a/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java +++ b/notification/src/main/java/de/staropensource/engine/notification/NotificationManager.java @@ -19,12 +19,12 @@ package de.staropensource.engine.notification; -import de.staropensource.engine.base.type.immutable.ImmutableHashMap; import de.staropensource.engine.notification.type.Notification; import de.staropensource.engine.notification.type.NotificationState; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -49,14 +49,14 @@ public final class NotificationManager { private NotificationManager() {} /** - * Returns an {@link ImmutableHashMap} containing all + * Returns an immutable map containing all * registered notifications and their current states. * * @return map of registered notifications * @since v1-alpha6 */ public static @NotNull Map<@NotNull Notification, @NotNull NotificationState> getNotifications() { - return new ImmutableHashMap<>(notifications); + return Collections.unmodifiableMap(notifications); } /**