From 31de1eee7de6a0d583464fc14d1628644781992b Mon Sep 17 00:00:00 2001 From: Miguel Vila Date: Tue, 4 Apr 2023 16:50:04 +0100 Subject: [PATCH] Use LinkedHasMap in ModelAssembler in order to iterate over files consistently --- .../software/amazon/smithy/model/loader/ModelAssembler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java b/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java index df139bffd31..54f1d18b490 100644 --- a/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java +++ b/smithy-model/src/main/java/software/amazon/smithy/model/loader/ModelAssembler.java @@ -29,6 +29,7 @@ import java.nio.file.Paths; import java.util.ArrayList; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Objects; @@ -93,7 +94,7 @@ public final class ModelAssembler { private TraitFactory traitFactory; private ValidatorFactory validatorFactory; private boolean disableValidation; - private final Map> inputStreamModels = new HashMap<>(); + private final Map> inputStreamModels = new LinkedHashMap<>(); private final List validators = new ArrayList<>(); private final List documentNodes = new ArrayList<>(); private final List mergeModels = new ArrayList<>();