diff --git a/logical/src/main/java/org/apache/drill/common/util/AbstractDynamicBean.java b/logical/src/main/java/org/apache/drill/common/util/AbstractDynamicBean.java index 0814d18371b..207b4418446 100644 --- a/logical/src/main/java/org/apache/drill/common/util/AbstractDynamicBean.java +++ b/logical/src/main/java/org/apache/drill/common/util/AbstractDynamicBean.java @@ -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