diff --git a/codegen/smithy-dafny-codegen/src/main/java/software/amazon/polymorph/smithygo/codegen/ValidationGenerator.java b/codegen/smithy-dafny-codegen/src/main/java/software/amazon/polymorph/smithygo/codegen/ValidationGenerator.java index 60b17ca33..376077c6b 100644 --- a/codegen/smithy-dafny-codegen/src/main/java/software/amazon/polymorph/smithygo/codegen/ValidationGenerator.java +++ b/codegen/smithy-dafny-codegen/src/main/java/software/amazon/polymorph/smithygo/codegen/ValidationGenerator.java @@ -4,6 +4,7 @@ import java.math.BigDecimal; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; import java.util.Optional; import software.amazon.polymorph.smithygo.localservice.nameresolver.SmithyNameResolver; @@ -45,9 +46,9 @@ public class ValidationGenerator { } """; private static final Map validationFuncMap = - new HashMap<>(); + new LinkedHashMap<>(); private static final Map validationFuncInputTypeMap = - new HashMap<>(); + new LinkedHashMap<>(); public ValidationGenerator( final GenerationContext context,