ss: Remove infinite loop in debugPrint() code
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 20 Sep 2016 16:37:16 +0000 (12:37 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 21 Sep 2016 17:16:28 +0000 (13:16 -0400)
In practice extensions are not used, so the value would always
be "-1" and it would never go inside the loop. But if we had
started using extensions it would have infinite looped rather
quickly.

Change-Id: I570437858995d0131a75e735373593caf5d4b25f
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/81498
Reviewed-by: Hudson CI
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
statesystem/org.eclipse.tracecompass.statesystem.core.tests/stubs/org/eclipse/tracecompass/statesystem/core/tests/stubs/backend/HistoryTreeClassicStub.java

index d6675c59bf0e2599ca372c23821862fc29fa0748..49354ea7db5d3c247b20fc18691ac5e4af9ae9c9 100644 (file)
@@ -166,12 +166,7 @@ public class HistoryTreeClassicStub extends HistoryTreeClassic {
         case CORE:
             try {
                 final CoreNode node = (CoreNode) currentNode;
-                /* Print the extensions, if any */
-                int extension = node.getExtensionSequenceNumber();
-                while (extension != -1) {
-                    HTNode nextNode = getTreeIO().readNode(extension);
-                    preOrderPrint(writer, printIntervals, nextNode, curDepth, ts);
-                }
+                /* If node extensions were used, they would be printed here. */
 
                 /* Print the child nodes */
                 for (int i = 0; i < node.getNbChildren(); i++) {
This page took 0.024824 seconds and 5 git commands to generate.