title: How do I remove the warning from a EasyMock.anyObject(List.class) call
body: <p>Compiler can't stop complaining with this call : </p>
  
  <pre><code>EasyMock.anyObject(List.class) 
  </code></pre>
  
  <p>I tried to specify list's type</p>
  
  <pre><code>EasyMock.anyObject(List&lt;MyType&gt;.class)
  </code></pre>
  
  <p>but it doesn't seems to be an option (anyway, it is stupid since java will erase the type during the compilation)</p>
  
  <p>Is there a clean way (@SuppressWarning is not a clean way IMO) to remove this warning?</p>
  
  <p>Thank you</p>