Skip to content

Commit

Permalink
union operation for createdElements
Browse files Browse the repository at this point in the history
  • Loading branch information
PRATHAM2002-DS committed May 31, 2024
1 parent e15f885 commit 4b7217d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2253,7 +2253,7 @@ private void addOrRemoveInternalAttr(AtlasVertex toVertex, String internalAttr,

if (CollectionUtils.isNotEmpty(createdElements)) {
List<String> assetGuids = createdElements.stream().map(x -> ((AtlasEdge) x).getOutVertex().getProperty("__guid", String.class)).collect(Collectors.toList());
portGuids.addAll(assetGuids);
portGuids = (List<String>) CollectionUtils.union(portGuids, assetGuids);
}

if (CollectionUtils.isNotEmpty(deletedElements)) {
Expand Down

0 comments on commit 4b7217d

Please sign in to comment.