title: Room 2.3.0 ignores @NonNull annotations
body: <p>After updating Android Room from 2.2.6 to 2.3.0 it stopped processing <code>@androidx.annotation.NonNull</code> annotations, they are ignored now.</p>
  <p>When installing the app after upgrade, I get:</p>
  <pre><code>Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number.
  </code></pre>
  <p>Example code that used to work in Room 2.2.6:</p>
  <pre><code>@NonNull
  @ColumnInfo(name = &quot;span_type&quot;)
  var spanType: SpanType? = null
  </code></pre>
  <p>after upgrading to 2.3.0 generates changes in schema (I have both <code>exportSchema</code> and <code>room.schemaLocation</code> set):</p>
  <p><a href="https://i.stack.imgur.com/dXxp7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dXxp7.png" alt="enter image description here" /></a></p>
  <p>In the example above <code>SpanType</code> is <code>enum</code>, but I also have these annotations on other fields, e.g. <code>@NonNull var objectId: Long? = null</code> and they also get ignored after upgrade.</p>
  <p>I know I can use workarounds but this is not what I want to do - I searched through docs, release notes, etc. and couldn't find any info that <code>@NonNull</code> support is deprecated or removed. I also tested with previous kotlin version (1.4.x instead of 1.5.20) and there's no difference.</p>
  <p>The closest SO question is probably <a href="https://stackoverflow.com/questions/67376196/after-updating-from-room-2-2-6-to-2-3-0-i-get-an-error-you-must-annotate-prima">this one</a>, but accepted answer is obviously wrong - kotlin supports <code>@NonNull</code> annotations.</p>
  <p>Do you have any ideas what I am missing?</p>