Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
fix #288 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmos authored Jan 4, 2023
1 parent f48cc99 commit ed0d0c5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import com.launchdarkly.sdk.server.subsystems.DataStoreTypes.ItemDescriptor;

import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
import org.yaml.snakeyaml.error.YAMLException;
import org.yaml.snakeyaml.representer.Representer;

import java.io.ByteArrayInputStream;
import java.io.IOException;
Expand Down Expand Up @@ -149,7 +151,7 @@ public FlagFileRep parseJson(JsonElement tree) throws FileDataException, IOExcep
* </ul>
*/
static final class YamlFlagFileParser extends FlagFileParser {
private static final Yaml yaml = new Yaml();
private static final Yaml yaml = new Yaml(new SafeConstructor(), new Representer());
private static final Gson gson = new Gson();
private static final JsonFlagFileParser jsonFileParser = new JsonFlagFileParser();

Expand Down

0 comments on commit ed0d0c5

Please sign in to comment.