diff --git a/plugins/org.eclipse.reddeer.junit/src/org/eclipse/reddeer/junit/internal/configuration/reader/JSONConfigurationReader.java b/plugins/org.eclipse.reddeer.junit/src/org/eclipse/reddeer/junit/internal/configuration/reader/JSONConfigurationReader.java index fe7c91474f..5b851f38ef 100644 --- a/plugins/org.eclipse.reddeer.junit/src/org/eclipse/reddeer/junit/internal/configuration/reader/JSONConfigurationReader.java +++ b/plugins/org.eclipse.reddeer.junit/src/org/eclipse/reddeer/junit/internal/configuration/reader/JSONConfigurationReader.java @@ -30,6 +30,7 @@ import org.eclipse.reddeer.junit.requirement.configuration.RequirementConfiguration; import org.json.JSONObject; import org.yaml.snakeyaml.Yaml; +import org.yaml.snakeyaml.constructor.SafeConstructor; import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.databind.JsonMappingException; @@ -85,7 +86,7 @@ public List loadConfigurations(File file) { @SuppressWarnings("unchecked") private String convertYamlToJson(File file) throws FileNotFoundException { - Map map= (Map) new Yaml().load(new FileReader(file)); + Map map= (Map) new Yaml(new SafeConstructor()).load(new FileReader(file)); JSONObject jsonObject = new JSONObject(map); return jsonObject.toString(); }