I have a method similar to below with the same array type (Java), and I get the below warning from PMD when the checks are run.
How do I resolve it?
public static double calculateSum(Double[] numArray) {
....
}
PMD warning:
Consider using varargs for methods or constructors which take an array the last parameter.