Avoid using ConcurrentHashMap
Use Collections.synchronizedSet() instead of creating a set from a ConcurrentHashMap because ConcurrentHashMap has a bug in APIs 21/22 that can result in lost updates. PiperOrigin-RevId: 453696565
Showing
with
6 additions
and
4 deletions
Please
register
or
sign in
to comment