Ignore Deprecated Type Warnings on import Statement
<p>I'm importing a class which has been deprecated, which I'm forced to use.</p>

<p>I want to suppress the deprecated error using the <code>@SuppressWarnings("deprecation")</code> annotation.</p>

<p>As per the comment on that annotation:</p>

<blockquote>
  <p>As a matter of style, <strong>programmers should always use this annotation on
  the most deeply nested element where it is effective.</strong> If you want to
  suppress a warning in a particular method, you should annotate that
  method rather than its class.</p>
</blockquote>

<p>So I clearly don't want to annotate the class and thus suppress deprecation warnings on <strong>any</strong> type my class uses, but I also would like to use the <code>import</code> statement to avoid typing out the fully qualified type name, which spans my entire monitor, on each use of the deprecated class.</p>

<p>I think I want to do something like annotating the <code>import</code> statement with <code>@SuppressWarnings</code> (NOT POSSIBLE) or specifying in the <code>@SuppressWarnings</code> annotation which type to ignore warnings for (e.g. <code>@SuppressWarnings("deprecation", "fully.qualified.type.name")</code>.</p>

<p>I want to indicate to the compiler "it's okay if I use this one, and only this one, deprecated class, referenced by its Simple Name, anywhere within this other class, and any other deprecated classes I reference you should let me know about".</p>

<p>Is there anything like this available?</p>
