Reports the calls of the JUnit assertEquals() methods that take arguments of the array type. Such methods compare the arrays' identities instead of the arrays' contents.

Suggests using one of the assertArrayEquals() methods to compare the arrays' contents.

Example:


  @Test
  public void testSort() {
    int[] actual = {248, 496, 0, 56};
    Arrays.sort(actual);
    Assert.assertEquals(new int[] {0, 56, 248, 496}, actual);
  }

After the quick-fix is applied:


  @Test
  public void testSort() {
    int[] actual = {248, 496, 0, 56};
    Arrays.sort(actual);
    Assert.assertArrayEquals(new int[] {0, 56, 248, 496}, actual);
  }