Skip to content

Java: Remove duplicate classes modeling Object.clone #6673

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

Merged

Conversation

Marcono1234
Copy link
Contributor

Reuses the existing CloneMethod class for two queries which had their own CodeQL class for this method.

@Marcono1234 Marcono1234 requested a review from a team as a code owner September 11, 2021 23:59
@github-actions github-actions bot added the Java label Sep 12, 2021
@Marcono1234 Marcono1234 force-pushed the marcono1234/clone-method-models branch from 10175bb to d117593 Compare September 12, 2021 00:06
from MethodAccess ma, Method m
where
m = ma.getMethod() and
m instanceof CloneMethod and
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might a behavior change because previously it would only consider calls to methods directly overriding Object.clone, while now it considers transitive overrides as well.
However the way the query description is written suggests that this is desired.

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Sep 13, 2021
@aschackmull aschackmull merged commit 2db039f into github:main Sep 13, 2021
@Marcono1234 Marcono1234 deleted the marcono1234/clone-method-models branch September 13, 2021 13:54
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.

2 participants