Inspectopedia
 
2024.3

Method can have varargs parameter

Info
New
Last modified: 03 December 2024

Reports methods that can be converted to variable arity methods.

Example:

After the quick-fix is applied:

This inspection depends on the Java feature 'Variable arity methods', which is available since Java 5.