title: Java: @NonNull for int?
body: <p>I'm looking for <code>@NonNull</code> equivalent Java annotation for primitive data type. I know primitive data cannot be <code>null</code>, but I wasn't able to find an alternative.</p>
  
  <p>What I'd like to achieve is logically equivalent to:</p>
  
  <pre><code>int mPageNumber;
  
  public void updatePage(@NonNull final Integer nonNull) {
      mPageNumber = nonNull.intValue();
  }
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>int mPageNumber;
  
  public void updatePage(@NonNull final int nonNull) {
      mPageNumber = nonNull;
  }
  </code></pre>
  
  <p>And I get the following lint warning:</p>
  
  <blockquote>
    <p>Primitive type members cannot be annotated. This inspection reports
    problems related to @Nullable and @NotNull annotations usage
    configured in Constant conditions &amp; exceptions inspection.</p>
  </blockquote>
  
  <p>What can I put in place of <code>@NonNull</code> and <code>Integer</code> in <code>updatePage</code> method above, so that I can have <code>int</code> as an argument, not <code>Integer</code>?</p>