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

chore: Bump snakeyaml version to 2.0 (from 1.32). #74

Merged
merged 1 commit into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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