Fix typo in FileWritable

This commit is contained in:
Jonathan Leitschuh
2022-01-19 16:14:38 -05:00
committed by GitHub
parent 70f4efb834
commit 23548c50e1

View File

@@ -62,7 +62,7 @@ private EnumConstant getAContainedEnumConstant(Expr enumSetRef) {
private VarAccess getFileForPathConversion(Expr pathExpr) {
pathExpr.getType().(RefType).hasQualifiedName("java.nio.file", "Path") and
(
// Look for conversion from `File` to `Path` using `file.getPath()`.
// Look for conversion from `File` to `Path` using `file.toPath()`.
exists(MethodAccess fileToPath |
fileToPath = pathExpr and
result = fileToPath.getQualifier() and