https://kotlinlang.org logo
Title
m

myanmarking

06/17/2019, 9:56 AM
is there any way to force the compiler to ignore java null checks annotations for an override case ?
g

gildor

06/17/2019, 10:01 AM
No, there is no way to do that
m

myanmarking

06/17/2019, 10:02 AM
so its a framework annotation bug
what to do ? besides reporting and using java code 😛
g

gildor

06/17/2019, 10:02 AM
Are you sure that you don’t have other bugs in your code?
What kind class do you use?
m

myanmarking

06/17/2019, 10:03 AM
i cannot change nullability in that override clearView call. compiler complains: it overrides nothing
but for some reason, i have crashes saying clearView returned null recyclerview
g

gildor

06/17/2019, 10:05 AM
What is clearView?
Is that ItemTouchHelper.Callback method?
m

myanmarking

06/17/2019, 10:06 AM
extending
ItemTouchHelper.Callback()
yes