mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
21 lines
577 B
HTML
21 lines
577 B
HTML
<html>
|
|
<body>
|
|
Reports method calls on parameterized collections, where the actual argument type does not
|
|
correspond to the collection's elements type.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
List<Integer> list = getListOfElements();
|
|
list.remove(""); // remove is highlighted
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
In the inspection settings, you can disable warnings for potentially correct code like the following:
|
|
</p>
|
|
<pre><code>
|
|
public boolean accept(Map<Integer, String> map, Object key) {
|
|
return map.containsKey(key);
|
|
}
|
|
</code></pre>
|
|
</body>
|
|
</html>
|