title: Suppress warning ~ Actual value of parameter X is always Y
body: <p>My Android Java code has a class that includes <code>cancel</code> method:</p>
  
  <pre><code>private void hide(int aniDuration) {
      if (!isVisible) return;
      if (runnable != null) handler.removeCallbacks(runnable);
      isVisible = false;
      if (aniDuration &gt; 0) {
          fadeInOut(false, aniDuration);
      }
      else {
          notifierLayout.setAlpha(0.0f);
          notifierLayout.setVisibility(View.GONE);
      }
  }
  
  private void hide() { hide(animateDuration); }
  
  @SuppressWarnings({"unused", "WeakerAccess"})
  public void cancel() { hide(); }
  
  @SuppressWarnings({"unused", "WeakerAccess"})
  public void cancel(int aniDuration) {
      hide(aniDuration);
  }
  </code></pre>
  
  <p>But since (so far) I call this <code>cancel</code> method just once with the parameter <code>aniDuration = 0</code>, the Android Studio debugger shows the following warning message:</p>
  
  <blockquote>
    <p>Actual value of parameter "aniDuration" is always "0"</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/jRuJI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jRuJI.png" alt="enter image description here"></a></p>
  
  <p>Besides of using <code>@SuppressWarnings("all")</code>, how could I suppress this type of warning?</p>