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

Commit

Permalink
chore: Bump snakeyaml version to 2.0 (from 1.32). (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonborg authored May 29, 2023
1 parent 1243e4e commit 94b1dd0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ maven_install(
"org.ow2.asm:asm:9.1",
"org.ow2.asm:asm-commons:9.1",
"org.ow2.asm:asm-util:9.1",
"org.yaml:snakeyaml:1.32",
"org.yaml:snakeyaml:2.0",
"pl.pragmatists:JUnitParams:1.1.1",
],
repositories = [
Expand Down
2 changes: 1 addition & 1 deletion src/agent/internals/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.32</version>
<version>2.0</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
import org.yaml.snakeyaml.error.YAMLException;
Expand Down Expand Up @@ -165,7 +166,7 @@ private void addPatternsToSet(Set<String> set, List<Object> patterns)
* structure.
*/
private void parseYaml(InputStream yamlConfig) throws YamlConfigParserException {
Yaml yaml = new Yaml(new SafeConstructor());
Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
Set<String> blocklistPatternSet = new HashSet<>();
Set<String> blocklistExceptionPatternSet = new HashSet<>();

Expand Down
2 changes: 1 addition & 1 deletion src/codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.32</version>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.google.devtools.cdbg.debuglets.java</groupId>
Expand Down

0 comments on commit 94b1dd0

Please sign in to comment.