mirror of
https://github.com/github/codeql.git
synced 2026-04-17 21:14:02 +02:00
Java: Address review comment, include addFirst,addLast.
This commit is contained in:
@@ -91,6 +91,10 @@ private predicate collectionAddition(Variable v, VarAccess coll, Expr e) {
|
||||
m.hasQualifiedName("java.util", "List", ["add", "addAll"]) and
|
||||
m.getNumberOfParameters() = 2 and
|
||||
arg = 1
|
||||
or
|
||||
m.hasQualifiedName("java.util", "SequencedCollection", ["addFirst", "addLast"]) and
|
||||
m.getNumberOfParameters() = 1 and
|
||||
arg = 0
|
||||
)
|
||||
or
|
||||
v.getAnAccess() = coll and
|
||||
|
||||
Reference in New Issue
Block a user