Skip to content

Commit

Permalink
hashmap to LinkedHashMap
Browse files Browse the repository at this point in the history
  • Loading branch information
rishav-karanjit committed Jan 7, 2025
1 parent bf06e19 commit b1f95ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static software.amazon.polymorph.smithygo.utils.Constants.DAFNY_RUNTIME_GO_LIBRARY_MODULE;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import software.amazon.polymorph.smithygo.awssdk.AwsSdkGoPointableIndex;
Expand Down Expand Up @@ -48,7 +49,7 @@ public class AwsSdkToDafnyShapeVisitor extends ShapeVisitor.Default<String> {
protected boolean isPointerType;
//TODO: Ideally this shouldn't be static but with current design we need to access this across instances.
private static final Map<MemberShape, String> memberShapeConversionFuncMap =
new HashMap<>();
new LinkedHashMap<>();

public AwsSdkToDafnyShapeVisitor(
final GenerationContext context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class DafnyToAwsSdkShapeVisitor extends ShapeVisitor.Default<String> {

//TODO: Ideally this shouldn't be static but with current design we need to access this across instances.
private static final Map<MemberShape, String> memberShapeConversionFuncMap =
new HashMap<>();
new LinkedHashMap<>();

public DafnyToAwsSdkShapeVisitor(
final GenerationContext context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static software.amazon.polymorph.smithygo.utils.Constants.DAFNY_RUNTIME_GO_LIBRARY_MODULE;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import software.amazon.polymorph.smithygo.codegen.GenerationContext;
Expand Down Expand Up @@ -52,7 +53,7 @@ public class DafnyToSmithyShapeVisitor extends ShapeVisitor.Default<String> {
private final boolean isOptional;
//TODO: Ideally this shouldn't be static but with current design we need to access this across instances.
private static final Map<MemberShape, String> memberShapeConversionFuncMap =
new HashMap<>();
new LinkedHashMap<>();

public DafnyToSmithyShapeVisitor(
final GenerationContext context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static software.amazon.polymorph.smithygo.utils.Constants.DAFNY_RUNTIME_GO_LIBRARY_MODULE;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import software.amazon.polymorph.smithygo.codegen.GenerationContext;
Expand Down Expand Up @@ -52,7 +53,7 @@ public class SmithyToDafnyShapeVisitor extends ShapeVisitor.Default<String> {
protected boolean isPointerType;
//TODO: Ideally this shouldn't be static but with current design we need to access this across instances.
private static final Map<MemberShape, String> memberShapeConversionFuncMap =
new HashMap<>();
new LinkedHashMap<>();

public SmithyToDafnyShapeVisitor(
final GenerationContext context,
Expand Down

0 comments on commit b1f95ec

Please sign in to comment.