blob: 6debc01ffc0c1285b439bf613a7f1e59d37c9fd8 [file]
<html>
<body>
Reports suspicious usages of <b>Collection</b> or an <b>Iterable</b> in vararg method calls. E.g. given method
<pre>&lt;T&gt; boolean contains(T needle, T... haystack) {...}</pre>
<p>a call like</p>
<pre>if(contains("item", listOfStrings)) {...}</pre>
<p>looks suspicious as the list will be wrapped into a single element array.
Such code can be successfully compiled and likely run without
exceptions, but it's unlikely intended.</p>
<!-- tooltip end -->
<p><small>New in 2019.2</small></p>
</body>
</html>