CodeQL library for Java/Kotlin
codeql/java-all 7.7.3-dev (changelog, source)
Search

Predicate isFileConstructorArgument

Holds if expSource is an argument to a constructor call exprDest (constructor from java.io.File), where the specific File constructor being used has paramCount parameters.

Import path

import semmle.code.java.security.TempDirUtils
predicate isFileConstructorArgument(Expr expSource, Expr exprDest, int paramCount)