We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4aa2661 + 23548c5 commit f154530Copy full SHA for f154530
java/ql/lib/semmle/code/java/security/FileWritable.qll
@@ -62,7 +62,7 @@ private EnumConstant getAContainedEnumConstant(Expr enumSetRef) {
62
private VarAccess getFileForPathConversion(Expr pathExpr) {
63
pathExpr.getType().(RefType).hasQualifiedName("java.nio.file", "Path") and
64
(
65
- // Look for conversion from `File` to `Path` using `file.getPath()`.
+ // Look for conversion from `File` to `Path` using `file.toPath()`.
66
exists(MethodAccess fileToPath |
67
fileToPath = pathExpr and
68
result = fileToPath.getQualifier() and
0 commit comments