https://kotlinlang.org logo
j

jschneider

11/07/2017, 3:53 PM
I don't understand the problem exactly. But when calling the Java setters the type is inferred to be "String!". Which is a backward compatible way of saying, there might be a null but we don't know for sure. It is a Kotlin thing to avoid too many false positives (which would happen if the inferred type would be String?