From 74d8978f20875f5daa5f9ba0a1a64c1f6d606a60 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Thu, 27 Jun 2024 20:09:57 +0200 Subject: [PATCH] Beautify Miscellaneous#getMapValue --- .../sosengine/base/utility/Miscellaneous.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java b/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java index 3f9d7a4..fad260d 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java +++ b/base/src/main/java/de/staropensource/sosengine/base/utility/Miscellaneous.java @@ -93,7 +93,11 @@ public final class Miscellaneous { * @since 1-alpha0 */ public static Set getMapValue(@NotNull Map map, @Nullable Object value) { - return map.entrySet().stream().filter(entry -> Objects.equals(entry.getValue(), value)).map(Map.Entry::getKey).collect(Collectors.toSet()); + return map + .entrySet().stream() + .filter(entry -> Objects.equals(entry.getValue(), value)) + .map(Map.Entry::getKey) + .collect(Collectors.toSet()); } /**