Skip to content

Commit

Permalink
Fix ReferenceEquality warn in LinkedTreeMap#nextNode
Browse files Browse the repository at this point in the history
  • Loading branch information
MaicolAntali committed Feb 14, 2023
1 parent 476eb84 commit 387746c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ private abstract class LinkedTreeMapIterator<T> implements Iterator<T> {

final Node<K, V> nextNode() {
Node<K, V> e = next;
if (e == header) {
if (e.equals(header)) {
throw new NoSuchElementException();
}
if (modCount != expectedModCount) {
Expand Down

0 comments on commit 387746c

Please sign in to comment.