I am a novice user on Kotlin, so perhaps it’s just me not getting used to the language syntax, but when I try to integrate with existing Java libraries, I can’t but notice many forced usage of “!!.” operators all over the places, and it obstruct code reading.
Another way from doc is to use “if (var != null)”, but it’s so verbose, I don’t want to use it.
I understand there is an article says to use jetbrian’s @NotNull annotation to supress this, but it seems applicable to IDEA IDE only. This doesn’t sound like an good option to me.
So is this how Kotlin intend to be used when integrating with Java? I understand and see the good purpose of Non-NULL feature of Kotlin, but enforcing this on exiting Java library is very annoying to me. Is it just my inexperience with Kotlin, or other users feel the same?