Skip to content

Commit f73eda0

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: add previous-id and change 'use' to 'call'
1 parent 2e25498 commit f73eda0

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
2-
* @id java/do-not-use-finalize
3-
* @name Do not use `finalize`
2+
* @id java/do-not-call-finalize
3+
* @previous-id java/do-not-use-finalizers
4+
* @name Do not call `finalize`
45
* @description Calling `finalize` in application code may cause
56
* inconsistent program state or unpredicatable behavior.
67
* @kind problem
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: newQuery
3+
---
4+
* Added a new quality query, `java/do-not-call-finalize`, to detect calls to `finalize`.

java/ql/src/change-notes/2025-03-20-do-not-use-finalize.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
query: Violations of Best Practice/Undesirable Calls/DoNotCallFinalize.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql

java/ql/test/query-tests/DoNotUseFinalize/DoNotUseFinalize.qlref

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)