The JDK provides a set of built-in methods to copy the contents of an array into another array. Using a loop to perform the same operation is less
clear, more verbose and should be avoided.
Exceptions
The rule detects only the most idiomatic patterns, it will not consider loops with non-trivial control flow. For example, loops that copy array
elements conditionally are ignored.