Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider Java v3.0

...

Code Block
bgColor#FFCCCC
ReturnType1 suspect1(Object... args) { }
<T>&lt;T&gt; ReturnType2 suspect2(T... args) { }

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

References

Wiki Markup
\[[Sun 06|AA. Java References#Sun 06]\] [varargs|http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html] 
\[[Bloch 08|AA. Java References#Bloch 08]\] Item 42: "&quot;Use varargs judiciously"&quot;
\[[Steinberg 05|AA. Java References#Steinberg 05]\] "&quot;Using the Varargs Language Feature"&quot;

...

DCL07-J. Ensure failure atomicity by declaring class and instance variables final and initializing immediately      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;03. Declarations and Initialization (DCL)      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DCL30-J. Do not attempt to assign to the loop variable in an enhanced for loop