SessionRegistryImpl should use computeIfAbsent #5834
Labels
in: web
An issue in web modules (web, webmvc)
status: first-timers-only
An issue that can only be worked on by brand new contributors
type: enhancement
A general enhancement
Milestone
Java 8 introduced
computeIfAbsent
onConcurrentHashMap
:Since
SessionRegistryImpl
usesConcurrentHashMap
and since it uses it as<String, List<?>>
, it seems like an ideal circumstance to make the update toprincipals
atomic.Instead of:
It could do:
The text was updated successfully, but these errors were encountered: