Suspicious 'System.arraycopy()' call
Reports suspicious calls to System.arraycopy().
Such calls are suspicious when:
the source or destination is not of an array type
the source and destination are of different types
the copied chunk length is greater than
src.length - srcPosthe copied chunk length is greater than
dest.length - destPosthe ranges always intersect when the source and destination are the same array
Example:
void foo() {
int[] src = new int[] { 1, 2, 3, 4 };
System.arraycopy(src, 0, src, 1, 2); // warning: Copying to the same array with intersecting ranges
}- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
SuspiciousSystemArraycopy
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
//noinspection SuspiciousSystemArraycopynote
Actual comment syntax will depend on the code language you are working with
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |