Is the new Android class LruCache thread safe? The java doc says:
This class is thread-safe. Perform multiple cache operations atomically by synchronizing on the cache:
synchronized (cache) {
if (cache.get(key) == null) {
cache.put(key, value);
}}
Did they mean to say NOT thread-safe? Why would one have to synchronize if the class is thread safe?
Thanks!