Skip to content

Java: Add previous-id and adjust tags for java/garbage-collection and java/run-finalizers-on-exit #20095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jcogs33
Copy link
Contributor

@jcogs33 jcogs33 commented Jul 19, 2025

Adds previous-id and adjusts tags for java/garbage-collection and java/run-finalizers-on-exit. Follow-up to #19075.

This will add java/run-finalizers-on-exit to the code-quality-extended suite. java/garbage-collection will not be added to any suite due to its low precision.

@jcogs33 jcogs33 changed the title Add previous-id and adjust tags for java/garbage-collection and java/run-finalizers-on-exit Java: Add previous-id and adjust tags for java/garbage-collection and java/run-finalizers-on-exit Jul 19, 2025
@jcogs33 jcogs33 marked this pull request as ready for review August 11, 2025 20:26
@jcogs33 jcogs33 requested a review from a team as a code owner August 11, 2025 20:26
@Copilot Copilot AI review requested due to automatic review settings August 11, 2025 20:26
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds previous-id metadata and adjusts tags for two Java queries (java/garbage-collection and java/run-finalizers-on-exit) to align with quality categorization standards. This follows up on query metadata standardization work.

  • Replaces maintainability tags with more specific quality-focused tags (quality, correctness, performance)
  • Adds previous-id metadata pointing to java/do-not-use-finalizers for both queries
  • Updates the code-quality-extended suite to include java/run-finalizers-on-exit

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
java/ql/src/change-notes/2025-07-19-adjust-tags.md Documents the tag changes for both queries
java/ql/src/Violations of Best Practice/Undesirable Calls/GarbageCollection.ql Updates tags from maintainability to quality/correctness and adds previous-id
java/ql/src/Violations of Best Practice/Undesirable Calls/CallsToRunFinalizersOnExit.ql Updates tags from maintainability to quality/correctness/performance and adds previous-id
java/ql/integration-tests/java/query-suite/java-code-quality-extended.qls.expected Adds CallsToRunFinalizersOnExit.ql to the expected test suite results

@yo-h yo-h requested a review from owen-mc August 11, 2025 20:37
@github github deleted a comment from juancarlos850810-cpu Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant