mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
15 lines
461 B
HTML
15 lines
461 B
HTML
<html>
|
|
<body>
|
|
Reports cases where the argument of a method call on a <code>java.util.Collection</code>
|
|
or <code>java.util.Map</code> is the collection or map itself.
|
|
Such situations may occur as a result of copy-paste in code with raw types.
|
|
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
ArrayList list = new ArrayList<>();
|
|
list.add(list); // warning here
|
|
return list.hashCode(); // throws StackOverflowError
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |