ComponentWithBrowseButton - optional remove listener on hide
[fedora-idea.git] / resources-en / src / inspectionDescriptions / SuspiciousMethodCalls.html
blobe26748cc6dee2a34124c4fb05008e0040d4972ce
1 <html>
2 <body>
3 <font face="verdana" size="-1">
4 This inspection reports method calls to parameterized collections, where actual argument type does not
5 correspond to the collection's elements type.<br><br>
6 For example if you have the following code:<br>
7 </font>
8 <pre>
9 &nbsp;&nbsp;&nbsp;&nbsp;List&lt;Integer&gt; list = getListOfElements();
10 &nbsp;&nbsp;&nbsp;&nbsp;list.remove("");
11 </pre>
12 <font face="verdana" size="-1">
13 - the call to <b><font color="#000080">remove()</font></b> will be highlighted.<br>
14 </font>
16 <p>
17 <font face="verdana" size="-1">
18 The option '<b>Report suspicious but possibly correct method calls</b>' makes it possible to ignore
19 potentially correct code, like this:<br>
20 </font>
22 <pre>
23 &nbsp;&nbsp;&nbsp;&nbsp;Number number = <b><font color="#000080">new</font></b> Integer(<font color="#0000FF">0</font>);
24 &nbsp;&nbsp;&nbsp;&nbsp;list.remove(number));
25 </pre>
27 </body>
28 </html>