Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2014-05-16 15:35:42 -0400
committerBernd Hufmann2014-05-16 22:36:16 -0400
commite11d4358aa8a3d8e392ae44afa15e64c35e29f7a (patch)
tree8915a6610c35ce884c2306416a9145b921dfc344
parent0b6ed6f904dd99d67eca519d560797eb6b9b7e9e (diff)
downloadorg.eclipse.linuxtools-e11d4358aa8a3d8e392ae44afa15e64c35e29f7a.tar.gz
org.eclipse.linuxtools-e11d4358aa8a3d8e392ae44afa15e64c35e29f7a.tar.xz
org.eclipse.linuxtools-e11d4358aa8a3d8e392ae44afa15e64c35e29f7a.zip
tmf: Use LinkedHashMap in state system Attribute class
By doing that the order in which sub-attributes are added is preserved. The call stack view showed incorrect stack frames because of that. Change-Id: I43c344d9d2667de625f9f776d76ab1bff144598a Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/26759 Tested-by: Hudson CI Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r--lttng/org.eclipse.linuxtools.statesystem.core/src/org/eclipse/linuxtools/internal/statesystem/core/Attribute.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.statesystem.core/src/org/eclipse/linuxtools/internal/statesystem/core/Attribute.java b/lttng/org.eclipse.linuxtools.statesystem.core/src/org/eclipse/linuxtools/internal/statesystem/core/Attribute.java
index f558c2909a..8c1e09219b 100644
--- a/lttng/org.eclipse.linuxtools.statesystem.core/src/org/eclipse/linuxtools/internal/statesystem/core/Attribute.java
+++ b/lttng/org.eclipse.linuxtools.statesystem.core/src/org/eclipse/linuxtools/internal/statesystem/core/Attribute.java
@@ -14,7 +14,7 @@ package org.eclipse.linuxtools.internal.statesystem.core;
import java.io.PrintWriter;
import java.util.Collections;
-import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Map;
@@ -54,7 +54,7 @@ public final class Attribute {
this.parent = parent;
this.quark = quark;
this.name = name;
- this.subAttributes = Collections.synchronizedMap(new HashMap<String, Attribute>());
+ this.subAttributes = Collections.synchronizedMap(new LinkedHashMap<String, Attribute>());
}
// ------------------------------------------------------------------------

Back to the top