Skip to content

Commit 95adb6d

Browse files
committed
?
1 parent 8708a6a commit 95adb6d

File tree

1 file changed

+1
-7
lines changed
  • codegen/smithy-dafny-codegen/src/main/java/software/amazon/polymorph/utils

1 file changed

+1
-7
lines changed

codegen/smithy-dafny-codegen/src/main/java/software/amazon/polymorph/utils/ModelUtils.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -568,13 +568,7 @@ public static Boolean isDependantModuleType(
568568
final String namespace
569569
) {
570570
final String shapeNamespace = shape.getId().getNamespace();
571-
final Map<String, String> serviceToShapeNameSpace = new HashMap<>();
572-
serviceToShapeNameSpace.put(namespace, "com.amazonaws.dynamodb");
573-
System.out.println("Shape namespace: " + shapeNamespace);
574-
System.out.println("Service namespace: " + namespace);
575-
// This *should* work; however, in the case of the DynamoDB and KMS Modules
576-
// the shapeNamespace and the namespace are different, when really they are the same.
577-
if (!shapeNamespace.toLowerCase().startsWith("smithy.api") ) {
571+
if (!shapeNamespace.toLowerCase().startsWith("smithy.api") && !namespace.equalsIgnoreCase(shapeNamespace)) {
578572
return true;
579573
} else {
580574
return false;

0 commit comments

Comments
 (0)