Merge pull request #7662 from JLLeitschuh/patch-2

Fix typo in FileWritable
This commit is contained in:
Anders Schack-Mulligen
2022-01-20 11:13:59 +01:00
committed by GitHub

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