diff --git a/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java index 67a4481ff..abb78d792 100644 --- a/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/ListOrderedMap.java @@ -685,12 +685,12 @@ public class ListOrderedMap @Override public V getValue() { - return parent.get(key); + return parent.get(getKey()); } @Override public V setValue(final V value) { - return parent.decorated().put(key, value); + return parent.decorated().put(getKey(), value); } }