The order in which the FSM are declared in the XML is important. Here,
we use a LinkedHashMap instead of a HashMap to conserve this order when
iterating through the FSMs.
Change-Id: I68837e8f8296741f20d1271d92c43b03ef90c986
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/77273
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
+import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
private final List<String> fInitialFsm;
private final Map<String, TmfXmlTransitionValidator> fTestMap = new HashMap<>();
private final Map<String, ITmfXmlAction> fActionMap = new HashMap<>();
- private final Map<String, TmfXmlFsm> fFsmMap = new HashMap<>();
+ private final Map<String, TmfXmlFsm> fFsmMap = new LinkedHashMap<>();
private final List<TmfXmlFsm> fActiveFsmList = new ArrayList<>();
/**