If arguments of a function in Java are annotated w...
# android
a
If arguments of a function in Java are annotated with neither
@Nullable
nor
@NotNull
, what is it considered in Kotlin. Normally it would be allowed to pass nullable arguments but I have updated Kotlin version and now it is taking them as non-nullable arguments and throwing error. Did this change?
e
it is considered a platform type, but if you're talking about the Android SDK: they have been adding nullness annotations with each release, so you may find that old code no longer compiles with newer SDKs. should generally be trivial fixups though
☝️ 1
a
Have no idea how, but I got it resolved. Removing the annotations didn't work for me somehow, probably used by Hilt since it threw a lot of errors. Maybe adding exclude config for annotation in other libraries did the trick. Anyways, thank you for your help 🙂