diff --git a/src/de/geofroggerfx/application/SessionContext.java b/src/de/geofroggerfx/application/SessionContext.java index dfbb00b..7cde71e 100644 --- a/src/de/geofroggerfx/application/SessionContext.java +++ b/src/de/geofroggerfx/application/SessionContext.java @@ -75,10 +75,10 @@ public class SessionContext { private void fireSessionEvent(String key) { if (sessionListeners.containsKey(key)) { - final List listenerList = sessionListeners.get(key); - for (final SessionContextListener listener : listenerList) { - listener.sessionContextChanged(); - } + sessionListeners. + get(key). + stream(). + forEach(SessionContextListener::sessionContextChanged); } } }