blob: 73044728be449bf6bcc6cb240e6847a6ea04b398 [file]
<html>
<body>
Reports method calls to parameterized collections, where actual argument type does not
correspond to the collection's elements type. <br> <br>
For example if you have the following code: <br>
<pre>
&nbsp;&nbsp;&nbsp;&nbsp;List&lt;Integer&gt; list = getListOfElements();
&nbsp;&nbsp;&nbsp;&nbsp;list.remove("");
</pre>
- the call to <b><font color="#000080">remove()</font></b> will be highlighted. <br>
<p>
The option '<b>Report suspicious but possibly correct method calls</b>' makes it possible to ignore
potentially correct code, like this: <br>
<pre>
&nbsp;&nbsp;&nbsp;&nbsp;Number number = <b><font color="#000080">new</font></b> Integer(<font color="#0000FF">0</font>);
&nbsp;&nbsp;&nbsp;&nbsp;list.remove(number));
</pre>
</body>
</html>