org.sonar.l10n.java.rules.squid.S923.html Maven / Gradle / Ivy
As stated per effective java :
Varargs methods are a convenient way to define methods that require a variable number of arguments, but they should not be overused. They can produce confusing results if used innapropriately.
Noncompliant Code Example
void fun ( String... strings ) // Noncompliant
{
// ...
}
See
- MISRA C:2004, 16.1 - Functions shall not be defined with a variable number of arguments.
- MISRA C++:2008, 8-4-1 - Functions shall not be defined using the ellipsis notation.
- CERT, DCL50-CPP - Do not define a C-style variadic function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy