File tree Expand file tree Collapse file tree
sdm/src/main/java/com/sap/cds/sdm/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import java .util .Collections ;
55import java .util .List ;
66import java .util .Map ;
7- import java .util .stream .Collectors ;
87import org .json .JSONObject ;
98
109/** Helper class to encapsulate validated attachment data for processing. */
@@ -43,14 +42,9 @@ public ValidatedAttachmentData(
4342 this .succinctProperties = succinctProperties ;
4443 this .entityAnnotations = entityAnnotations ;
4544 this .targetEntity = targetEntity ;
46- this .successfulObjectIds = List .copyOf (successfulObjectIds );
47- // Deep immutability: wrap outer list and each inner list as unmodifiable
48- this .movedAttachmentsMetadata =
49- Collections .unmodifiableList (
50- movedAttachmentsMetadata .stream ()
51- .map (Collections ::unmodifiableList )
52- .collect (Collectors .toList ()));
53- this .populatedDocuments = List .copyOf (populatedDocuments );
45+ this .successfulObjectIds = successfulObjectIds ;
46+ this .movedAttachmentsMetadata = movedAttachmentsMetadata ;
47+ this .populatedDocuments = populatedDocuments ;
5448 this .sourceCmisDocument = sourceCmisDocument ;
5549 }
5650
You can’t perform that action at this time.
0 commit comments