Skip to content

Commit

Permalink
feature(chore):884 - adapted mapper / testdata.
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mwesener committed Jul 3, 2024
1 parent 43d71c9 commit 61d2572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class AssetBase {
private String van;
private SemanticDataModel semanticDataModel;
private String classification;
@Singular
private List<DetailAspectModel> detailAspectModels;
private List<Notification> sentQualityAlerts;
private List<Notification> receivedQualityAlerts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static void enrichAssetBase(List<DetailAspectModel> detailAspectModels, A
detailAspectModels.stream()
.filter(detailAspectModel -> detailAspectModel.getGlobalAssetId().equals(assetBase.getId()))
.findFirst()
.ifPresent(detailAspectModel -> emptyIfNull(assetBase.getDetailAspectModels()).add(detailAspectModel));
.ifPresent(detailAspectModel -> emptyIfNull(new ArrayList<>(assetBase.getDetailAspectModels())).add(detailAspectModel));
}

public static void enrichUpwardAndDownwardDescriptions(Map<String, List<Descriptions>> descriptionsMap, AssetBase assetBase) {
Expand Down

0 comments on commit 61d2572

Please sign in to comment.