Suspicious collection method call

Last modified: 03 December 2024

Reports method calls on parameterized collections, where the actual argument type does not correspond to the collection's elements type.

Example:

In the inspection settings, you can disable warnings for potentially correct code like the following: