diff options
Diffstat (limited to 'common/src/main/java/org/openecomp/mso/properties')
-rw-r--r-- | common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java index 323c4dbe99..976b579fcf 100644 --- a/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java +++ b/common/src/main/java/org/openecomp/mso/properties/MsoJsonProperties.java @@ -112,10 +112,10 @@ public class MsoJsonProperties extends AbstractMsoProperties { public synchronized MsoJsonProperties clone() { MsoJsonProperties msoCopy = new MsoJsonProperties(); - ObjectMapper mapper = new ObjectMapper(); + ObjectMapper newMapper = new ObjectMapper(); try { - msoCopy.jsonRootNode = mapper.createObjectNode(); - msoCopy.jsonRootNode = mapper.readValue(this.jsonRootNode.toString(), JsonNode.class); + msoCopy.jsonRootNode = newMapper.createObjectNode(); + msoCopy.jsonRootNode = newMapper.readValue(this.jsonRootNode.toString(), JsonNode.class); } catch (JsonParseException e) { LOGGER.debug("JsonParseException when cloning the object:" + this.propertiesFileName, e); } catch (JsonMappingException e) { |