Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmcdonald3 committed Oct 8, 2024
1 parent d52c026 commit adb8ea8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -735,12 +735,14 @@ public static List<Shape> getTopologicallyOrderedOrphanedShapesForService(
TopologicalIndex topologicalIndex = TopologicalIndex.of(model);

for (Shape shape : topologicalIndex.getOrderedShapes()) {
if (orphanedShapes.contains(shape)) {
if (orphanedShapes.contains(shape)
&& shape.getId().getNamespace().equals(serviceShape.getId().getNamespace())) {
orderedShapes.add(shape);
}
}
for (Shape shape : topologicalIndex.getRecursiveShapes()) {
if (orphanedShapes.contains(shape)) {
if (orphanedShapes.contains(shape)
&& shape.getId().getNamespace().equals(serviceShape.getId().getNamespace())) {
orderedShapes.add(shape);
}
}
Expand Down

0 comments on commit adb8ea8

Please sign in to comment.