Inspectopedia
 
2024.3

Overloaded varargs method

Warning
New
Last modified: 03 December 2024

Reports varargs methods with the same name as other methods in the class or in a superclass. Overloaded methods that take a variable number of arguments can be very confusing because it is often unclear which overload gets called.

Example:

Use the option to ignore overloaded methods whose parameter types are definitely incompatible.