Java
Method can have varargs parameter
Info
New
Last modified: 03 December 2024Reports 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);
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
MethodCanBeVariableArityMethod
This inspection depends on the Java feature 'Variable arity methods', which is available since Java 5.
Here you can find the description of settings available for the Method can have varargs parameter inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?