Skip to content

Commit 832e005

Browse files
Jami CogswellJami Cogswell
Jami Cogswell
authored and
Jami Cogswell
committed
Java: minor refactor
1 parent 90b8bac commit 832e005

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java/ql/src/Violations of Best Practice/Undesirable Calls/DoNotUseFinalize.ql

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313

1414
import java
1515

16-
from MethodCall mc, Method m
16+
from MethodCall mc
1717
where
18-
mc.getMethod() = m and
19-
m.hasName("finalize") and
18+
mc.getMethod().hasName("finalize") and
2019
// The Java documentation for `finalize` states: "If a subclass overrides
2120
// `finalize` it must invoke the superclass finalizer explicitly". Therefore,
2221
// we do not alert on `super.finalize` calls that occur within a callable

0 commit comments

Comments
 (0)