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.
1 parent dd57d1a commit 44445dbCopy full SHA for 44445db
java/ql/src/Violations of Best Practice/Undesirable Calls/DoNotUseFinalize.ql
@@ -13,10 +13,9 @@
13
14
import java
15
16
-from MethodCall mc, Method m
+from MethodCall mc
17
where
18
- mc.getMethod() = m and
19
- m.hasName("finalize") and
+ mc.getMethod().hasName("finalize") and
20
// The Java documentation for `finalize` states: "If a subclass overrides
21
// `finalize` it must invoke the superclass finalizer explicitly". Therefore,
22
// we do not alert on `super.finalize` calls that occur within a callable
0 commit comments