Skip to content

Commit 573de92

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: add java.util.function models
1 parent a8c55ee commit 573de92

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

java/ql/lib/ext/java.util.function.model.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,16 @@ extensions:
44
extensible: sinkModel
55
data:
66
- ["java.util.function", "Predicate", False, "test", "(Object)", "", "Argument[-1]", "regex-use[0]", "manual"]
7+
8+
- addsTo:
9+
pack: codeql/java-all
10+
extensible: summaryModel
11+
data:
12+
- ["java.util.function", "Function", True, "apply", "(Object)", "", "Argument[0]", "ReturnValue", "taint", "manual"]
13+
- ["java.util.function", "Supplier", False, "get", "()", "", "Argument[-1]", "ReturnValue", "value", "manual"]
14+
15+
- addsTo:
16+
pack: codeql/java-all
17+
extensible: neutralModel
18+
data:
19+
- ["java.util.function", "Consumer", "accept", "(Object)", "manual"]

0 commit comments

Comments
 (0)