Skip to content

Commit

Permalink
FasterXML#2442: Use ArrayNode#add in ArrayNode#addAll to handle raw n…
Browse files Browse the repository at this point in the history
…ull adds.
  • Loading branch information
heshamMassoud committed Sep 5, 2019
1 parent 8f0d07d commit bfe2e49
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ public ArrayNode addAll(ArrayNode other)
*/
public ArrayNode addAll(Collection<? extends JsonNode> nodes)
{
_children.addAll(nodes);
for (JsonNode node : nodes) {
add(node);
}
return this;
}

Expand Down

0 comments on commit bfe2e49

Please sign in to comment.