Redundant type arguments

Last modified: 03 December 2024

Reports calls to parametrized methods with explicit argument types that can be omitted since they will be unambiguously inferred by the compiler.

Using redundant type arguments is unnecessary and makes the code less readable.

Example:

A quick-fix is provided to remove redundant type arguments: