Skip to content

Commit

Permalink
[MINOR UPDATE] replace deprecate method use in jackson (apache#2905)
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
shoothzj authored Apr 21, 2024
1 parent 3feec2e commit d9549bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public abstract class AbstractDynamicBean {

private static volatile ObjectMapper MAPPER;

private ObjectNode objectNode = new ObjectNode(null);
private final ObjectNode objectNode = new ObjectNode(null);

@JsonAnySetter
public void _anySetter(String name, JsonNode value){
objectNode.put(name, value);
objectNode.replace(name, value);
}

@JsonAnyGetter
Expand Down

0 comments on commit d9549bb

Please sign in to comment.