Back to Intellij Community

ArrayObjectsEquals

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

2025.3-rc-2298 B
Original Source

Reports expressions that seem to use an inappropriate method for determining array equality or calculating their hashcode.

The following method calls are reported:

  • Object.equals() for any arrays
  • Arrays.equals() for multidimensional arrays
  • Arrays.hashCode() for multidimensional arrays