Skip to content

Commit 771d7cb

Browse files
authored
Merge pull request #20095 from jcogs33/jcogs33/java/finalizers-on-exit-and-garbage-collection
Java: Add `previous-id` and adjust tags for `java/garbage-collection` and `java/run-finalizers-on-exit`
2 parents f1c6064 + bca2c2d commit 771d7cb

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

java/ql/integration-tests/java/query-suite/java-code-quality-extended.qls.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ ql/java/ql/src/Violations of Best Practice/Naming Conventions/LocalShadowsFieldC
8080
ql/java/ql/src/Violations of Best Practice/Naming Conventions/SameNameAsSuper.ql
8181
ql/java/ql/src/Violations of Best Practice/Records/IgnoredSerializationMembersOfRecordClass.ql
8282
ql/java/ql/src/Violations of Best Practice/SpecialCharactersInLiterals/NonExplicitControlAndWhitespaceCharsInLiterals.ql
83+
ql/java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToRunFinalizersOnExit.ql
8384
ql/java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToStringToString.ql
8485
ql/java/ql/src/Violations of Best Practice/Undesirable Calls/DefaultToString.ql
8586
ql/java/ql/src/Violations of Best Practice/Undesirable Calls/DoNotCallFinalize.ql

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
* @problem.severity error
88
* @precision medium
99
* @id java/run-finalizers-on-exit
10-
* @tags reliability
11-
* maintainability
10+
* @previous-id java/do-not-use-finalizers
11+
* @tags quality
12+
* reliability
13+
* correctness
14+
* performance
1215
*/
1316

1417
import java

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
* @problem.severity recommendation
77
* @precision low
88
* @id java/garbage-collection
9-
* @tags reliability
10-
* maintainability
9+
* @previous-id java/do-not-use-finalizers
10+
* @tags quality
11+
* reliability
12+
* correctness
1113
*/
1214

1315
import java
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
category: queryMetadata
3+
---
4+
* The tag `maintainability` has been removed from `java/run-finalizers-on-exit` and the tags `quality`, `correctness`, and `performance` have been added.
5+
* The tag `maintainability` has been removed from `java/garbage-collection` and the tags `quality` and `correctness` have been added.

0 commit comments

Comments
 (0)