Skip to content

Commit 1a2c34d

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update qhelp implementation notes for clarity
1 parent c4b8396 commit 1a2c34d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/Violations of Best Practice/Undesirable Calls/DoNotCallFinalize.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ void main() {
4848

4949
# Implementation Notes
5050

51-
This rule is focused on the use of existing `finalize()` invocations rather than attempts to write a custom implementation.
51+
This rule ignores `super.finalize()` calls that occur within `finalize()` overrides since calling the superclass finalizer is required when overriding `finalize()`. Also, although overriding `finalize()` is not recommended, this rule only alerts on direct calls to `finalize()` and does not alert on overrides of `finalize()`.
52+
5253

5354
## References
5455

0 commit comments

Comments
 (0)