| <html> |
| <body> |
| <font face="verdana" size="-1"> |
| This inspection 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> |
| </font> |
| <pre> |
| List<Integer> list = getListOfElements(); |
| list.remove(""); |
| </pre> |
| <font face="verdana" size="-1"> |
| - the call to <b><font color="#000080">remove()</font></b> will be highlighted.<br> |
| </font> |
| |
| <p> |
| <font face="verdana" size="-1"> |
| The option '<b>Report suspicious but possibly correct method calls</b>' makes it possible to ignore |
| potentially correct code, like this:<br> |
| </font> |
| |
| <pre> |
| Number number = <b><font color="#000080">new</font></b> Integer(<font color="#0000FF">0</font>); |
| list.remove(number)); |
| </pre> |
| |
| </body> |
| </html> |