CollectionToArraySafeParameter
The type of the array parameter of Collection.toArray needs to be compatible with the array type

Severity
ERROR

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("CollectionToArraySafeParameter") to the enclosing element.