diff --git a/src/main/java/org/apache/commons/collections4/bidimap/AbstractDualBidiMap.java b/src/main/java/org/apache/commons/collections4/bidimap/AbstractDualBidiMap.java index 55cc57b07..779c29186 100644 --- a/src/main/java/org/apache/commons/collections4/bidimap/AbstractDualBidiMap.java +++ b/src/main/java/org/apache/commons/collections4/bidimap/AbstractDualBidiMap.java @@ -702,7 +702,7 @@ public abstract class AbstractDualBidiMap implements BidiMap { @Override public V setValue(final V value) { - final K key = MapEntry.this.getKey(); + final K key = getKey(); if (parent.reverseMap.containsKey(value) && parent.reverseMap.get(value) != key) { throw new IllegalArgumentException( 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 3c91ee8e0..e44cf468e 100644 --- a/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java +++ b/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java @@ -2220,17 +2220,17 @@ public class TreeBidiMap, V extends Comparable> @Override public boolean equals(final Object obj) { - return TreeBidiMap.this.doEquals(obj, DataElement.VALUE); + return TreeBidiMap.this.doEquals(obj, VALUE); } @Override public int hashCode() { - return TreeBidiMap.this.doHashCode(DataElement.VALUE); + return TreeBidiMap.this.doHashCode(VALUE); } @Override public String toString() { - return TreeBidiMap.this.doToString(DataElement.VALUE); + return TreeBidiMap.this.doToString(VALUE); } }