I want to usedebug
to see which methodSchedulers.single()
is.
Then I found something strange
Thef
here is obviouslynull
but 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 thedebug
method?
Please give me some advice, I don’t understand this at all.
I think it is a debugging problem,
Function f = onSingleHandler
f is a Function type and has been assigned a non-null valueonSingleHandler
, sof != null
You can see that
onSingleHandler
is annotated as@Nullable
’s