美文网首页
Android 查看源码出现this.val$code

Android 查看源码出现this.val$code

作者: XII01 | 来源:发表于2020-05-29 14:36 被阅读0次
    public void fail(int code, String descr) {
        runOnMainThread(new Runnable(code, descr)
        {
            public void run() {
                if (ICallback.this.cb != null)
                    ICallback.this.cb.onError(this.val$code, this.val$descr);
                else if (ICallback.this.valueCallback != null)
                    ICallback.this.valueCallback.onError(this.val$code, this.val$descr);
            }
        });
    }

其实是编译器反编译的时候加上去的,实际是下面

    public void fail(final int code,final String descr) {
        IMContext.getInstance().runOnMainThread(new Runnable()
        {
            public void run() {
                if (ICallback.this.cb != null)
                    ICallback.this.cb.onError(code, descr);
                else if (ICallback.this.valueCallback != null)
                    ICallback.this.valueCallback.onError(code, descr);
            }
        });
    }

相关文章

网友评论

      本文标题:Android 查看源码出现this.val$code

      本文链接:https://www.haomeiwen.com/subject/trwxzhtx.html