mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
ignore when the reciever is the empty array
This commit is contained in:
@@ -41,5 +41,7 @@ predicate isIgnoredPureArrayCall(DataFlow::MethodCallNode call) {
|
||||
}
|
||||
|
||||
from DataFlow::MethodCallNode call
|
||||
where callsArray(call) instanceof DataFlow::ArrayCreationNode
|
||||
where
|
||||
callsArray(call) instanceof DataFlow::ArrayCreationNode and
|
||||
not call.getReceiver().asExpr().(ArrayExpr).getSize() = 0
|
||||
select call, "Result from call to " + call.getMethodName() + " ignored."
|
||||
|
||||
Reference in New Issue
Block a user