title: How to suppress specific Lint warning for deprecated Android function?
body: <p>I use a version switch to support older Android versions.</p>
  
  <pre><code>int sdk = Build.VERSION.SDK_INT;
  if (sdk &lt; Build.VERSION_CODES.HONEYCOMB) {
      ColorDrawable colorDrawable = new ColorDrawable(shapeColor);
      //noinspection deprecation
      viewHolder.shape.setBackgroundDrawable(colorDrawable);
  } else {
      viewHolder.shape.setColor(shapeColor);
  }
  </code></pre>
  
  <p>When build the project with Gradle from the <strong>command line</strong> the following warning is output by Lint:</p>
  
  <pre><code>app/src/main/java/com/example/MyApp/CustomListAdapter.java:92: warning: 
  [deprecation] setBackgroundDrawable(Drawable) in View has been deprecated
              viewHolder.shape.setBackgroundDrawable(colorDrawable);
                              ^
  </code></pre>
  
  <p>Can I annotate the specific line or method to mute the warning (since I do it on purpose)? I do <strong>not</strong> want to disable <strong>all</strong> warnings.</p>