NCopiesOfChar
The first argument to nCopies is the number of copies, and the second is the item to copy

Severity
ERROR
Has Fix?
REQUIRES_HUMAN_ATTENTION

The problem

Calling nCopies('a', 10) returns a list with 97 copies of 10, not a list with 10 copies of ‘a’.

Suppression

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