提交 71bfc6b6 编写于 作者: J judds 提交者: Sam Judd

Fix a missing synchronized block in LruCache.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165650311
上级 a2a695f1
......@@ -58,7 +58,7 @@ public class LruCache<T, Y> {
/**
* Returns the number of entries stored in cache.
*/
protected int getCount() {
protected synchronized int getCount() {
return cache.size();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册