diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java index 06c87876d..3be726777 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java @@ -32,6 +32,7 @@ import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; +import java.util.IdentityHashMap; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.LinkedList; @@ -392,8 +393,9 @@ public class BrokerImpl beginInternal(); } + @SuppressWarnings("unchecked") private void initializeOperatingSet() { - _operating = MapBackedSet.decorate(new IdentityMap()); + _operating = MapBackedSet.decorate(new IdentityHashMap()); } /**