Skip to content

Commit

Permalink
Sync with TreeCodec definition
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 28, 2019
1 parent 64408b7 commit ae2d369
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -2830,6 +2830,16 @@ public ArrayNode createArrayNode() {
return _deserializationConfig.getNodeFactory().arrayNode();
}

@Override // since 2.10
public JsonNode missingNode() {
return _deserializationConfig.getNodeFactory().missingNode();
}

@Override // since 2.10
public JsonNode nullNode() {
return _deserializationConfig.getNodeFactory().nullNode();
}

/**
* Method for constructing a {@link JsonParser} out of JSON tree
* representation.
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/fasterxml/jackson/databind/ObjectReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,16 @@ public JsonNode createObjectNode() {
return _config.getNodeFactory().objectNode();
}

@Override // since 2.10
public JsonNode missingNode() {
return _config.getNodeFactory().missingNode();
}

@Override // since 2.10
public JsonNode nullNode() {
return _config.getNodeFactory().nullNode();
}

@Override
public JsonParser treeAsTokens(TreeNode n) {
_assertNotNull("n", n);
Expand Down

0 comments on commit ae2d369

Please sign in to comment.