Skip to content

Commit 6f78b72

Browse files
Alvaro Muñozaschackmull
andauthored
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
1 parent a57308a commit 6f78b72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/ql/src/semmle/code/java/frameworks/SnakeYaml.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private class SnakeYamlParse extends MethodAccess {
7171
SnakeYamlParse() {
7272
exists(Method m |
7373
m.getDeclaringType() instanceof Yaml and
74-
(m.hasName("compose") or m.hasName("composeAll") or m.hasName("load") or m.hasName("loadAll") or m.hasName("loadAs") or m.hasName("parse")) and
74+
m.hasName(["compose", "composeAll", "load", "loadAll", "loadAs", "parse"]) and
7575
m = this.getMethod()
7676
)
7777
}

0 commit comments

Comments
 (0)