###@NotNull in Java I'm not entirely sure if I'm d...
# announcements
d
###@NotNull in Java I'm not entirely sure if I'm doing something wrong here... [@NotNull](https://kotlinlang.org/docs/reference/java-interop.html#nullability-annotations) - I marked my ***abstract method*** in my ***Java class*** with
@NotNull
on the return value (it returns a
String
) - I subclassed this ***Java class*** in ***Kotlin*** - I implemented the abstract method in the Kotlin class - but IntelliJ accepts both
: String
and
:String?
without complaints... I want to limit it so that only
:String
is valid - which is what I thought that link was saying
@NotNull
was for... what did I misunderstand?