Skip to content
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

Java: Deprecate or remove imports of dataflow library copies #15026

Conversation

egregius313
Copy link
Contributor

@egregius313 egregius313 commented Dec 6, 2023

This deprecates the public re-exporting of the copies of the old dataflow library (e.g. semmle.code.java.dataflow.DataFlow2 or semmle.code.java.dataflow.TaintTracking3).

Currently CodeQL issues a warning when using an item from a deprecated import, even if the usage is in a deprecated context. So for now, modules which still use the deprecated items (e.g. a deprecated class extending TaintTracking2::Configuration) mark the import as deprecated, and then re-import it privately.

@github-actions github-actions bot added the Java label Dec 6, 2023
@egregius313 egregius313 force-pushed the egregius313/java/dataflow/deprecate-old-dataflow-module-uses branch from e7a79b4 to aebbc7d Compare December 8, 2023 15:42
@egregius313 egregius313 marked this pull request as ready for review December 8, 2023 15:47
@egregius313 egregius313 requested a review from a team as a code owner December 8, 2023 15:47
Copy link
Contributor

@aschackmull aschackmull left a comment

Choose a reason for hiding this comment

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

LGTM!

@egregius313 egregius313 merged commit 8d724ac into github:main Dec 11, 2023
10 checks passed
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.

2 participants