We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9830f5 commit 368d20bCopy full SHA for 368d20b
LiveDataBusLib/src/main/java/com/yccx/livebuslib/helper/BusWeakHandler.java
@@ -35,12 +35,11 @@
35
* revise: 采用弱引用,避免handler内存泄漏问题
36
* </pre>
37
*/
38
-@SuppressWarnings("unused")
39
-public class BusWeakHandler {
+public final class BusWeakHandler {
40
41
private final Handler.Callback mCallback;
42
private final ExecHandler mExec;
43
- private Lock mLock = new ReentrantLock();
+ private final Lock mLock = new ReentrantLock();
44
@SuppressWarnings("ConstantConditions")
45
@VisibleForTesting
46
private final ChainedRef mRunnables = new ChainedRef(mLock, null);
0 commit comments