mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
copying element children
This commit is contained in:
parent
55ac916133
commit
aaa7490a22
@ -1368,7 +1368,9 @@ public class Element extends Base {
|
||||
dest.value = value;
|
||||
if (children != null) {
|
||||
dest.children = new ArrayList<>();
|
||||
dest.children.addAll(children);
|
||||
for (Element child : children) {
|
||||
dest.children.add((Element) child.copy());
|
||||
}
|
||||
} else {
|
||||
dest.children = null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user