All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.java.rules.squid.S923.html Maven / Gradle / Ivy

There is a newer version: 8.6.0.37351
Show newest version

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