Skip to content

Java: Add deprecation annotations in SSA#20772

Merged
aschackmull merged 1 commit into
github:mainfrom
aschackmull:java/ssa-deprecate
Nov 21, 2025
Merged

Java: Add deprecation annotations in SSA#20772
aschackmull merged 1 commit into
github:mainfrom
aschackmull:java/ssa-deprecate

Conversation

@aschackmull
Copy link
Copy Markdown
Contributor

Followup for #20761

@github-actions github-actions Bot added the Java label Nov 7, 2025
Comment thread java/ql/lib/semmle/code/java/dataflow/SSA.qll Dismissed
Comment thread java/ql/lib/semmle/code/java/dataflow/TypeFlow.qll Dismissed
Comment thread java/ql/lib/semmle/code/java/dataflow/internal/BaseSSA.qll Dismissed
Comment thread java/ql/lib/semmle/code/java/dataflow/internal/SsaImpl.qll Dismissed
@aschackmull aschackmull marked this pull request as ready for review November 21, 2025 10:11
@aschackmull aschackmull requested a review from a team as a code owner November 21, 2025 10:11
Copilot AI review requested due to automatic review settings November 21, 2025 10:11
@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Nov 21, 2025
Copy link
Copy Markdown
Contributor

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

This PR adds deprecation annotations to SSA-related predicates and classes in the Java dataflow library as a followup to PR #20761. The changes mark various SSA predicates, classes, and methods as deprecated to guide users toward newer alternatives.

Key changes:

  • Deprecated several helper predicates in SsaImpl.qll for SSA operations
  • Deprecated legacy SSA classes in SSA.qll including SsaVariable, SsaUpdate, SsaExplicitUpdate, and SsaImplicitInit
  • Deprecated member predicates and methods within those classes

Reviewed Changes

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

File Description
java/ql/lib/semmle/code/java/dataflow/internal/SsaImpl.qll Added deprecation annotations to predicates ssaExplicitUpdate, ssaImplicitInit, getAUse, and ssaDefReachesEndOfBlock
java/ql/lib/semmle/code/java/dataflow/SSA.qll Added deprecation annotations to classes SsaVariable, SsaUpdate, SsaExplicitUpdate, and SsaImplicitInit, as well as their member predicates getCfgNode, getAUse, and isParameterDefinition

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aschackmull aschackmull merged commit 8d72040 into github:main Nov 21, 2025
25 of 26 checks passed
@aschackmull aschackmull deleted the java/ssa-deprecate branch November 21, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants