Skip to content

Commit f154530

Browse files
authored
Merge pull request #7662 from JLLeitschuh/patch-2
Fix typo in FileWritable
2 parents 4aa2661 + 23548c5 commit f154530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/security/FileWritable.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private EnumConstant getAContainedEnumConstant(Expr enumSetRef) {
6262
private VarAccess getFileForPathConversion(Expr pathExpr) {
6363
pathExpr.getType().(RefType).hasQualifiedName("java.nio.file", "Path") and
6464
(
65-
// Look for conversion from `File` to `Path` using `file.getPath()`.
65+
// Look for conversion from `File` to `Path` using `file.toPath()`.
6666
exists(MethodAccess fileToPath |
6767
fileToPath = pathExpr and
6868
result = fileToPath.getQualifier() and

0 commit comments

Comments
 (0)