changed for-loop into collection stream

This commit is contained in:
2014-08-29 00:44:43 +02:00
parent 15e9ecb854
commit 0502cc6187

View File

@@ -75,10 +75,10 @@ public class SessionContext {
private void fireSessionEvent(String key) { private void fireSessionEvent(String key) {
if (sessionListeners.containsKey(key)) { if (sessionListeners.containsKey(key)) {
final List<SessionContextListener> listenerList = sessionListeners.get(key); sessionListeners.
for (final SessionContextListener listener : listenerList) { get(key).
listener.sessionContextChanged(); stream().
} forEach(SessionContextListener::sessionContextChanged);
} }
} }
} }