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