-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
In DelegatingMarshallContext.java calling method
public static void processMarshalingTree(ObjectNode tree, Collection<? extends Marshaler<?>> marshalers,
MarshalTarget marshalTarget) throws IOException {
Objects.requireNonNull(tree);
Objects.requireNonNull(marshalers);
Objects.requireNonNull(marshalTarget);
Marshaler<?> marshaler = findMarshalerForObjectNode(tree, marshalers);
try (DelegatingMarshalContext marshalContext = create(marshaler, marshalers, marshalTarget)) {
marshalContext.acceptTree(tree);
}
}
results in object meta.xml written twice. First time it is written in method call marshalContext.acceptTree(tree) and second time when marshallContex is closed.