I've got something like that:
@LocalServerPort
private lateinit var serverPort: Integer
And IDEA warns that java.lang.Integer should not be used, use kotlin.Int instead. But kotlin.Int cannot be used with a lateinit property. Is there a way to satisfy both restrictions?
Update: I'm compiling with -Werror, as I think every project should. Therefore, code becomes ridden with @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN") adding unnecessary garbage.