Skip to content

Commit a5727fc

Browse files
committed
Merge pull request #990 from marcphilipp/release-notes-918
Document #918
2 parents 3d7dfb3 + 3dbe046 commit a5727fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/ReleaseNotes4.12.md

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Version 4.11 added `Assert.assertEquals()` for `float` parameters with a delta,
1212
`Assert.assertArrayEquals()` previously existed for all primitive array types, except `boolean[]`. This has now been added for `boolean[]`.
1313

1414

15+
### [Pull request #918:](https://github.com/junit-team/junit/pull/918) Avoid potentially expensive reflection-based loop in Assert.assertArrayEquals()
16+
17+
In the usual case, where the array elements are in fact exactly equal, the potentially expensive reflection-based loop to compare them is avoided by using `Arrays.deepEquals()` first. The exact comparison is only executed when `deepEquals()` returns `false`.
18+
19+
1520
# Test Runners
1621

1722

0 commit comments

Comments
 (0)