Back to Intellij Community

SuspiciousArrayMethodCall

java/java-impl/resources/inspectionDescriptions/SuspiciousArrayMethodCall.html

2025.3-rc-2289 B
Original Source

Reports calls to non-generic-array manipulation methods like Arrays.fill() with mismatched argument types. Such calls don't do anything useful and are likely to be mistakes.

Example:

int foo(String[] strings) {
    return Arrays.binarySearch(strings, 1);
  }

New in 2017.2