]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
(refs #5418) Replace uses of HashMap with THashMap
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sat, 18 Oct 2014 19:01:00 +0000 (19:01 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sat, 18 Oct 2014 19:01:00 +0000 (19:01 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30450 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/VariableRVIUtils.java

index 7b6a68bcd492a97c28f56770bd12aa1a71e8acb0..5ba169689791bd4340b5e7a32d36c24af544f4a4 100644 (file)
  *******************************************************************************/\r
 package org.simantics.sysdyn.adapter;\r
 \r
+import gnu.trove.map.hash.THashMap;\r
+\r
 import java.util.ArrayList;\r
 import java.util.HashMap;\r
 import java.util.LinkedHashMap;\r
 import java.util.List;\r
+import java.util.Map;\r
 \r
 import org.simantics.databoard.Bindings;\r
 import org.simantics.db.ReadGraph;\r
@@ -244,7 +247,7 @@ public class VariableRVIUtils {
             String currentFilter = filter[i].trim();\r
             \r
             ArrayList<SysdynDataSet> tempResult = new ArrayList<SysdynDataSet>();\r
-            HashMap<String, SysdynDataSet> sums = new HashMap<String, SysdynDataSet>();\r
+            Map<String, SysdynDataSet> sums = new THashMap<String, SysdynDataSet>();\r
             for(SysdynDataSet dataset : result) {\r
                 String tempIndexes = dataset.name.substring(dataset.name.indexOf('[') + 1, dataset.name.indexOf(']'));\r
                 String[] indexes = tempIndexes.split(",");\r