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

Commit 94b1dd0

Browse files
authored
chore: Bump snakeyaml version to 2.0 (from 1.32). (#74)
1 parent 1243e4e commit 94b1dd0

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ maven_install(
3636
"org.ow2.asm:asm:9.1",
3737
"org.ow2.asm:asm-commons:9.1",
3838
"org.ow2.asm:asm-util:9.1",
39-
"org.yaml:snakeyaml:1.32",
39+
"org.yaml:snakeyaml:2.0",
4040
"pl.pragmatists:JUnitParams:1.1.1",
4141
],
4242
repositories = [

src/agent/internals/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>org.yaml</groupId>
3838
<artifactId>snakeyaml</artifactId>
39-
<version>1.32</version>
39+
<version>2.0</version>
4040
<scope>compile</scope>
4141
</dependency>
4242
<dependency>

src/agent/internals/src/main/java/com/google/devtools/cdbg/debuglets/java/YamlConfigParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.util.List;
2525
import java.util.Map;
2626
import java.util.Set;
27+
import org.yaml.snakeyaml.LoaderOptions;
2728
import org.yaml.snakeyaml.Yaml;
2829
import org.yaml.snakeyaml.constructor.SafeConstructor;
2930
import org.yaml.snakeyaml.error.YAMLException;
@@ -165,7 +166,7 @@ private void addPatternsToSet(Set<String> set, List<Object> patterns)
165166
* structure.
166167
*/
167168
private void parseYaml(InputStream yamlConfig) throws YamlConfigParserException {
168-
Yaml yaml = new Yaml(new SafeConstructor());
169+
Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions()));
169170
Set<String> blocklistPatternSet = new HashSet<>();
170171
Set<String> blocklistExceptionPatternSet = new HashSet<>();
171172

src/codegen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>org.yaml</groupId>
3333
<artifactId>snakeyaml</artifactId>
34-
<version>1.32</version>
34+
<version>2.0</version>
3535
</dependency>
3636
<dependency>
3737
<groupId>com.google.devtools.cdbg.debuglets.java</groupId>

0 commit comments

Comments
 (0)