Skip to content

Commit

Permalink
Use LinkedHasMap in ModelAssembler in order to iterate over files con…
Browse files Browse the repository at this point in the history
…sistently
  • Loading branch information
miguel-vila authored and mtdowling committed Apr 5, 2023
1 parent 89b2aca commit 31de1ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -93,7 +94,7 @@ public final class ModelAssembler {
private TraitFactory traitFactory;
private ValidatorFactory validatorFactory;
private boolean disableValidation;
private final Map<String, Supplier<InputStream>> inputStreamModels = new HashMap<>();
private final Map<String, Supplier<InputStream>> inputStreamModels = new LinkedHashMap<>();
private final List<Validator> validators = new ArrayList<>();
private final List<Node> documentNodes = new ArrayList<>();
private final List<Model> mergeModels = new ArrayList<>();
Expand Down

0 comments on commit 31de1ee

Please sign in to comment.