This is supposed to be a lint that never deducts points. In some cases Arrays.copyOf or similar helper methods are easier to read than the code written with arraycopy.
For example getter/setter.
Important: The lint should only apply, when there is a java.util import.
Lint Name
No response
Category
api
Example
int[] result = new int[array.length];
System.arraycopy(array, 0, array.length, result, 0, result.length);
return result;
What it does
This is supposed to be a lint that never deducts points. In some cases
Arrays.copyOf
or similar helper methods are easier to read than the code written with arraycopy.For example getter/setter.
Important: The lint should only apply, when there is a
java.util
import.Lint Name
No response
Category
api
Example
Could be written as: