Security Fix
[clamp.git] / src / main / java / org / onap / clamp / clds / config / sdc / BlueprintParserMappingConfiguration.java
index a78e895..9274f82 100644 (file)
 package org.onap.clamp.clds.config.sdc;
 
 import com.fasterxml.jackson.core.type.TypeReference;
-import com.fasterxml.jackson.databind.ObjectMapper;
 
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.List;
 
+import org.onap.clamp.clds.util.JacksonUtils;
+
 /**
  * This class is used to decode the configuration found in
  * application.properties, this is related to the blueprint mapping
@@ -65,6 +66,6 @@ public class BlueprintParserMappingConfiguration {
     public static List<BlueprintParserMappingConfiguration> createFromJson(InputStream json) throws IOException {
         TypeReference<List<BlueprintParserMappingConfiguration>> mapType = new TypeReference<List<BlueprintParserMappingConfiguration>>() {
         };
-        return new ObjectMapper().readValue(json, mapType);
+        return JacksonUtils.getObjectMapperInstance().readValue(json, mapType);
     }
 }