From b111ebf27147c6e99945e0209b7b316bd0a0a608 Mon Sep 17 00:00:00 2001 From: Kezhou Tong <709567093@qq.com> Date: Tue, 24 Oct 2023 13:06:11 +0200 Subject: [PATCH] replaced HashMap with LinkedHashMap -> output files are correct. --- .../org/matsim/contrib/common/timeprofile/ProfileWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contribs/common/src/main/java/org/matsim/contrib/common/timeprofile/ProfileWriter.java b/contribs/common/src/main/java/org/matsim/contrib/common/timeprofile/ProfileWriter.java index 463eaa806df..4c6a4822663 100644 --- a/contribs/common/src/main/java/org/matsim/contrib/common/timeprofile/ProfileWriter.java +++ b/contribs/common/src/main/java/org/matsim/contrib/common/timeprofile/ProfileWriter.java @@ -112,7 +112,7 @@ public void notifyIterationEnds(IterationEndsEvent event) { } //choose profiles which only happened during operation time - Map profilesInOperationTime = new HashMap<>(); + Map profilesInOperationTime = new LinkedHashMap<>(); Set profilesKeys = profiles.keySet(); for (String key : profilesKeys){ List arrayList = new ArrayList<>();