Back to Intellij Community

MethodCanBeVariableArityMethod

java/java-impl/resources/inspectionDescriptions/MethodCanBeVariableArityMethod.html

2025.3-rc-2220 B
Original Source

Reports methods that can be converted to variable arity methods.

Example:

void process(String name, Object[] objects);

After the quick-fix is applied:

void process(String name, Object... objects);