From 0502cc61875ab640b18987b62a510f519384a21f Mon Sep 17 00:00:00 2001 From: frosch95 Date: Fri, 29 Aug 2014 00:44:43 +0200 Subject: [PATCH] changed for-loop into collection stream --- src/de/geofroggerfx/application/SessionContext.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } }