How to add null annotation for the third-party dep...
# getting-started
j
How to add null annotation for the third-party dependencies? I once saw a method but couldn't find it.
e
there used to be support for external annotations but it was was deprecated before Kotlin 1.0, https://blog.jetbrains.com/kotlin/2014/10/m9-is-here/
a
2nd best option is to tell IntelliJ about nullables https://www.jetbrains.com/help/idea/external-annotations.html but this is only a warning, not a compile error, and it’s not easy to share the config
j
That's enough for me. Thanks.