Skip to content

Commit

Permalink
Use Objects.equals()
Browse files Browse the repository at this point in the history
Co-Authored-By: Marc Philipp <mail@marcphilipp.de>
  • Loading branch information
sormuras and marcphilipp committed Jan 20, 2020
1 parent 530bb44 commit 09fa8e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private static void assertIterableEquals(Iterable<?> expected, Iterable<?> actua
}
// Prevent stack overflow error.
// See https://github.com/junit-team/junit5/issues/2157 for details.
if (expectedElement != null && expectedElement.equals(actualElement)) {
if (Objects.equals(expectedElement, actualElement)) {
continue;
}

Expand Down

0 comments on commit 09fa8e3

Please sign in to comment.