Skip to content

Commit

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

@Override public final boolean hasNext() {
return next != header;
return !next.equals(header);
}

final Node<K, V> nextNode() {
Expand Down

0 comments on commit 476eb84

Please sign in to comment.