This is an automated email from the ASF dual-hosted git repository. dkulp pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cxf.git
commit d5fd2f14b13c0b859b69e1ad944b7de374a7380e Author: Andriy Redko <drr...@gmail.com> AuthorDate: Tue Nov 29 15:25:28 2022 -0500 Addressing code review comments --- core/src/main/java/org/apache/cxf/message/MessageContentsList.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/org/apache/cxf/message/MessageContentsList.java b/core/src/main/java/org/apache/cxf/message/MessageContentsList.java index 4b5cfa46fa..69b319ec42 100644 --- a/core/src/main/java/org/apache/cxf/message/MessageContentsList.java +++ b/core/src/main/java/org/apache/cxf/message/MessageContentsList.java @@ -50,6 +50,9 @@ public class MessageContentsList extends ArrayList<Object> { } public MessageContentsList(List<?> values) { super(values); + if (values instanceof MessageContentsList) { + removed.addAll(((MessageContentsList) values).removed); + } } public static MessageContentsList getContentsList(Message msg) {