| <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> | |
| List<Integer> list = getListOfElements(); | |
| 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> | |
| Number number = <b><font color="#000080">new</font></b> Integer(<font color="#0000FF">0</font>); | |
| list.remove(number)); | |
| </pre> | |
| </body> | |
| </html> |