[java] Update rule doc for UseVarArgs, refs #3182

This commit is contained in:
Andreas Dangel
2021-04-15 10:27:38 +02:00
parent 5b8c156047
commit 3989c080f3

View File

@ -1946,9 +1946,11 @@ public class TryWithResources {
typeResolution="true"
externalInfoUrl="${pmd.website.baseurl}/pmd_rules_java_bestpractices.html#usevarargs">
<description>
Java 5 introduced the varargs parameter declaration for methods and constructors. This syntactic
Java 5 introduced the varargs parameter declaration for methods and constructors. This syntactic
sugar provides flexibility for users of these methods and constructors, allowing them to avoid
having to deal with the creation of an array.
Byte arrays in any method and String arrays in `public static void main(String[])` methods are ignored.
</description>
<priority>4</priority>
<properties>