aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Bergeron2013-11-08 22:59:35 (EST)
committerAlexandre Montplaisir2013-11-17 00:15:40 (EST)
commit2eec15fa8df4ba05728158097274ccbff7d731fd (patch)
treed38ee40a3fc845f05177561e7484eb4abfcf9585
parent935fd10732bbbff18a86ccd7ea43d85ccc02b9da (diff)
downloadorg.eclipse.linuxtools-2eec15fa8df4ba05728158097274ccbff7d731fd.zip
org.eclipse.linuxtools-2eec15fa8df4ba05728158097274ccbff7d731fd.tar.gz
org.eclipse.linuxtools-2eec15fa8df4ba05728158097274ccbff7d731fd.tar.bz2
Avoid calling reverse on a list.refs/changes/52/18452/2
Change-Id: I3f3b17ea4372ef5db64b20f9c267d606ded8101a Signed-off-by: Etienne Bergeron <etienne.bergeron@gmail.com> Reviewed-on: https://git.eclipse.org/r/18452 Reviewed-by: Fran├žois Doray <fdoray.eclipse@gmail.com> Tested-by: Hudson CI Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im> IP-Clean: Alexandre Montplaisir <alexmonthy@voxpopuli.im> Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/Attribute.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/Attribute.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/Attribute.java
index 85174ca..093615b 100644
--- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/Attribute.java
+++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/Attribute.java
@@ -123,12 +123,10 @@ abstract class Attribute {
/* Add recursive parents to the list, but stop at the root node */
while (curNode.getParent() != null) {
- list.add(curNode.getName());
+ list.addFirst(curNode.getName());
curNode = curNode.getParent();
}
- Collections.reverse(list);
-
return list.toArray(new String[0]);
}