changed for-loop into collection stream
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user