android - Are there any special techniques for debugging third-party libraries?
阿神
阿神 2017-05-31 10:39:32
0
1
754

I want to usedebugto see which methodSchedulers.single()is.

Then I found something strange

Thefhere is obviouslynullbut it is not directlyreturn defaultScheduler?;
Why does it go toreturn apply(f,deaultScheduler) ;Is there something wrong with my source code? Or is there something wrong with thedebugmethod?

Please give me some advice, I don’t understand this at all.

阿神
阿神

闭关修行中......

reply all (1)
習慣沉默

I think it is a debugging problem,Function f = onSingleHandlerf is a Function type and has been assigned a non-null valueonSingleHandler, sof != null
You can see thatonSingleHandleris annotated as@Nullable’s

@Nullable static volatile Function onSingleHandler;
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!