From ae2d36962a00b93f51ca1eb39bf634659a0111bc Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Tue, 27 Aug 2019 19:06:20 -0700 Subject: [PATCH] Sync with TreeCodec definition --- .../com/fasterxml/jackson/databind/ObjectMapper.java | 10 ++++++++++ .../com/fasterxml/jackson/databind/ObjectReader.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java index 9900a2b6e2..c70f78eb58 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java +++ b/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java @@ -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. diff --git a/src/main/java/com/fasterxml/jackson/databind/ObjectReader.java b/src/main/java/com/fasterxml/jackson/databind/ObjectReader.java index f2513499ee..306eac0fd3 100644 --- a/src/main/java/com/fasterxml/jackson/databind/ObjectReader.java +++ b/src/main/java/com/fasterxml/jackson/databind/ObjectReader.java @@ -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);