diff --git a/src/main/java/spoon/support/util/internal/ElementNameMap.java b/src/main/java/spoon/support/util/internal/ElementNameMap.java index 04bd678caea..169160f9ee1 100644 --- a/src/main/java/spoon/support/util/internal/ElementNameMap.java +++ b/src/main/java/spoon/support/util/internal/ElementNameMap.java @@ -159,6 +159,15 @@ public boolean containsKey(Object key) { return map.containsKey(key); } + @Override + public T get(Object key) { + InsertOrderWrapper wrapper = map.get(key); + if (wrapper == null) { + return null; + } + return wrapper.value; + } + /** * Updates the mapping for a single key from {@code oldKey} to {@code newKey} if present. *