diff --git a/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java b/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java index 920a99f32..7df2e99b3 100644 --- a/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java +++ b/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java @@ -1556,7 +1556,7 @@ public class TreeBidiMap, V extends Comparable> } @Override - public Iterator> iterator() { + public Iterator> iterator() { return new ViewMapEntryIterator(); } } @@ -1597,7 +1597,7 @@ public class TreeBidiMap, V extends Comparable> } @Override - public Iterator> iterator() { + public Iterator> iterator() { return new InverseViewMapEntryIterator(); } }