Skip to content

Commit 4efa06e

Browse files
committed
ST6RI-909 Corrected MembershipImportAdapter::importMemberships.
- Added check if importedElement is excluded before recursing.
1 parent 6b7f6ff commit 4efa06e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.omg.sysml/src/org/omg/sysml/adapter/MembershipImportAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void importMemberships(EList<Membership> importedMemberships, Set<Namespa
4949
importedMemberships.add(importedMembership);
5050
if (target.isRecursive()) {
5151
Element importedElement = importedMembership.getMemberElement();
52-
if (importedElement instanceof Namespace) {
52+
if (importedElement instanceof Namespace && !excluded.contains(importedElement)) {
5353
Collection<Membership> namespaceMembership =
5454
NamespaceUtil.getVisibleMembershipsFor((Namespace)importedElement, excluded, true, target.isImportAll());
5555
importedMemberships.addAll(namespaceMembership);

0 commit comments

Comments
 (0)