diff --git a/java/ql/lib/semmle/code/java/security/TempFileLib.qll b/java/ql/lib/semmle/code/java/security/TempFileLib.qll index d44ca261277b0..35b4768b8fb68 100644 --- a/java/ql/lib/semmle/code/java/security/TempFileLib.qll +++ b/java/ql/lib/semmle/code/java/security/TempFileLib.qll @@ -18,8 +18,8 @@ class MethodFileCreateTempFile extends Method { */ class MethodFileCreatesDirs extends Method { MethodFileCreatesDirs() { - getDeclaringType() instanceof TypeFile and - hasName(["mkdir", "mkdirs"]) + this.getDeclaringType() instanceof TypeFile and + this.hasName(["mkdir", "mkdirs"]) } }