From: Tuukka Lehtonen Date: Mon, 27 Aug 2018 21:17:48 +0000 (+0300) Subject: Switch MapList to use Java HashMap X-Git-Tag: v1.43.0~136^2~399^2~1 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F38%2F2038%2F1;p=simantics%2Fplatform.git Switch MapList to use Java HashMap Java HashMap is more efficient than Trove THashMap already in JDK 8. gitlab #89 Change-Id: I9eb9be8a513ad1cd90b8f6f4a45aca99bba9234b --- diff --git a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/MapList.java b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/MapList.java index 900c4b701..cdfa9f782 100644 --- a/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/MapList.java +++ b/bundles/org.simantics.utils.datastructures/src/org/simantics/utils/datastructures/MapList.java @@ -14,11 +14,10 @@ */ package org.simantics.utils.datastructures; -import gnu.trove.map.hash.THashMap; - import java.util.ArrayList; import java.util.Collection; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Map.Entry; @@ -73,7 +72,7 @@ public class MapList { protected Map> lists; public MapList() { - lists = new THashMap>(); + lists = new HashMap>(); } @SuppressWarnings("unchecked")