Inspectopedia Help

Use of shallow or 'Objects' methods with arrays

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

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023