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: add previous-id and change 'use' to 'call'
  • Loading branch information
Jami Cogswell authored and Jami Cogswell committed Mar 27, 2025
commit f73eda0c38ab9c02407d9d2f1ce380d42a653401
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* @id java/do-not-use-finalize
* @name Do not use `finalize`
* @id java/do-not-call-finalize
* @previous-id java/do-not-use-finalizers
* @name Do not call `finalize`
* @description Calling `finalize` in application code may cause
* inconsistent program state or unpredicatable behavior.
Comment thread
jcogs33 marked this conversation as resolved.
Outdated
* @kind problem
Expand Down
4 changes: 4 additions & 0 deletions java/ql/src/change-notes/2025-03-20-do-not-call-finalize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: newQuery
---
* Added a new quality query, `java/do-not-call-finalize`, to detect calls to `finalize`.
4 changes: 0 additions & 4 deletions java/ql/src/change-notes/2025-03-20-do-not-use-finalize.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
query: Violations of Best Practice/Undesirable Calls/DoNotCallFinalize.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql

This file was deleted.