tandraschko commented on code in PR #1022:
URL: https://github.com/apache/myfaces/pull/1022#discussion_r3447259382


##########
impl/src/main/java/org/apache/myfaces/application/ApplicationImplEventManager.java:
##########
@@ -122,11 +122,11 @@ public void subscribeToEvent(Class<? extends SystemEvent> 
systemEventClass, Clas
         Assert.notNull(systemEventClass, "systemEventClass");
         Assert.notNull(listener, "listener");
 
-        List<EventInfo> eventInfos = globalListeners.get(systemEventClass);
+        // MYFACES-4757 use computeIfAbsent to prevent multiple threads from 
creating different lists
+        List eventInfos = globalListeners.get(systemEventClass);

Review Comment:
   please readd generics



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to