https://kotlinlang.org logo
e

edwardwongtl

10/06/2017, 5:51 AM
@qwert_ukg The type you should be declaring are
String
or
String?
, depends on the situation. Every thing comes from Java is of type
Type!
, cause there is no way to ensure if it is nullable or not. So the responsibility comes down to the developer to manually casting it to Kotlin types, which are
Type
and
Type?