summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorsnjeza2011-04-28 16:39:50 (EDT)
committer Igor Fedorenko2011-04-28 22:04:08 (EDT)
commit832f567606c6935d17396a03b9104ade83f95bb4 (patch)
tree59a6eb85aab65321f36230b89cfe17a51f71c5bd
parent3fde4eb1f604aa835426eb6b1b2ea9c20d1608a9 (diff)
downloadm2e-core-832f567606c6935d17396a03b9104ade83f95bb4.zip
m2e-core-832f567606c6935d17396a03b9104ade83f95bb4.tar.gz
m2e-core-832f567606c6935d17396a03b9104ade83f95bb4.tar.bz2
m2e performance - Updating a classpath3.7-M7a
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/BasicProjectRegistry.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/BasicProjectRegistry.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/BasicProjectRegistry.java
index b8c644b..cacec62 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/BasicProjectRegistry.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/project/registry/BasicProjectRegistry.java
@@ -13,7 +13,8 @@ package org.eclipse.m2e.core.internal.project.registry;
import java.io.Serializable;
import java.util.HashMap;
-import java.util.HashSet;
+import java.util.LinkedHashMap;
+import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
@@ -84,11 +85,11 @@ abstract class BasicProjectRegistry implements Serializable {
for(Map.Entry entry : (Set<Map.Entry>) from.entrySet()) {
Object value = entry.getValue();
if(value instanceof Map) {
- Map map = new HashMap();
+ Map map = new LinkedHashMap();
copy((Map) value, map);
value = map;
} else if(value instanceof Set) {
- Set set = new HashSet((Set) value);
+ Set set = new LinkedHashSet((Set) value);
value = set;
}
to.put(entry.getKey(), value);