提交 c4f9aaec 编写于 作者: W wanglihang

FIX: synchronized statements where the lock expression is a reference to a...

FIX: synchronized statements where the lock expression is a reference to a non-final field. Such statements are unlikely to have useful semantics, as different threads may be locking on different objects even when operating on the same object.
上级 d62a17c9
......@@ -26,7 +26,7 @@ public class StackSampler {
private HandlerThread mStackThread;
private Handler mStackHandler;
private LinkedHashMap<Long, String> sStackMap = new LinkedHashMap<>();
private final LinkedHashMap<Long, String> sStackMap = new LinkedHashMap<>();
private String mFilterCache;
public void init() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册