https://kotlinlang.org logo
#getting-started
Title
# getting-started
j

Jason5lee

01/08/2023, 3:13 AM
How to add null annotation for the third-party dependencies? I once saw a method but couldn't find it.
e

ephemient

01/08/2023, 5:41 AM
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

Adam S

01/08/2023, 10:35 AM
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

Jason5lee

01/12/2023, 4:14 AM
That's enough for me. Thanks.
2 Views