From c4f4133d961fb96ae7a99c86678cb09fb9aff1f5 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Tue, 28 Aug 2018 00:17:48 +0300 Subject: [PATCH] Switch MapList to use Java HashMap Java HashMap is more efficient than Trove THashMap already in JDK 8. gitlab #89 Change-Id: I9eb9be8a513ad1cd90b8f6f4a45aca99bba9234b --- .../src/org/simantics/utils/datastructures/MapList.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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") -- 2.47.1