title: @SuppressWarnings for final type parameter
body: <p>In a place I have a method with a generic &quot;VT extends String&quot;. Obviously this generates a warning: <em>The type parameter VT should not be bounded by the final type String. Final types cannot be further extended</em>.</p>
  <p>Do you know if there's a way to suppress this warning (Eclipse)? If you're wondering how I got to have this:</p>
  <pre><code>import java.util.ArrayList;
  import java.util.List;
  
  class A&lt;T&gt; {
  T value;
  B&lt;? super T&gt; b;
  
  void method() {
      b.method(value,new ArrayList&lt;T&gt;());
  }}
  
  interface B&lt;X&gt; {
  &lt;VT extends X&gt; VT method(VT p, List&lt;VT&gt; lst);
  }
  
  // works fine
  class C implements B&lt;Number&gt; {
  public &lt;VT extends Number&gt; VT method(final VT p, final List&lt;VT&gt; lst) {
      return p;
  }}
  
  // causes warning
  class D implements B&lt;String&gt; {
  public &lt;VT extends String&gt; VT method(final VT p, final List&lt;VT&gt; lst) {
      return p;
  }}
  
  // error: The type E must implement the inherited abstract method B&lt;String&gt;.method(VT, List&lt;VT&gt;)
  class E implements B&lt;String&gt; {
  @SuppressWarnings(&quot;unchecked&quot;)
  public String method(final String p, final List&lt;String&gt; lst) {
      return p;
  }}
  </code></pre>