Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Java: update qhelp and add 'performace' tag
  • Loading branch information
Jami Cogswell authored and Jami Cogswell committed Mar 28, 2025
commit caf21a8202c3055273d5955e2fc273c58881fe82
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Overview

Calling `finalize()` in application code may cause inconsistent program state or unpredicatable behavior.
Triggering garbage collection by directly calling `finalize()` may either have no effect or may trigger unnecessary garbage collection, leading to erratic behavior, performance issues, or deadlock.
Comment thread
jcogs33 marked this conversation as resolved.
Outdated

## Recommendation

Expand All @@ -23,5 +23,6 @@ This rule is focused on the use of existing `finalize()` invocations rather than

## References

- Carnegie Mellon University, SEI CERT Oracle Coding Standard for Java: [MET12-J. Do not use finalizers](https://wiki.sei.cmu.edu/confluence/display/java/MET12-J.+Do+not+use+finalizers).
- SEI CERT Oracle Coding Standard for Java: [MET12-J. Do not use finalizers](https://wiki.sei.cmu.edu/confluence/display/java/MET12-J.+Do+not+use+finalizers).
- Java API Specification: [Object.finalize()](https://docs.oracle.com/javase/10/docs/api/java/lang/Object.html#finalize()).
- Common Weakness Enumeration: [CWE-586](https://cwe.mitre.org/data/definitions/586).
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @problem.severity error
* @tags quality
* correctness
* performance
* external/cwe/cwe-586
*/

Expand Down