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

EqualsAvoidsNull should flip arguments for constants #398

Merged
merged 17 commits into from
Nov 29, 2024

Conversation

punkratz312
Copy link
Contributor

@punkratz312 punkratz312 commented Nov 27, 2024

Hi,

I might have found an issue in my local project where around 90 violations flagged by PMD are not being replaced correctly. Some of these violations seem related to a list and method arguments.

Could you please take over and enable the necessary tests to confirm if this is indeed an issue?

Thanks in advance!

@timtebeek
@knutwannheden
@ggerbaud

@timtebeek timtebeek self-requested a review November 28, 2024 00:29
@timtebeek timtebeek marked this pull request as ready for review November 28, 2024 00:42
@timtebeek timtebeek added the enhancement New feature or request label Nov 28, 2024
@timtebeek timtebeek changed the title Replace method args EqualsAvoidsNull should flip arguments for constants Nov 29, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • src/main/java/org/openrewrite/staticanalysis/EqualsAvoidsNullVisitor.java
    • lines 18-18

Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Thanks for the help here @punkratz312 ! Nice to see these cases covered as well.

@timtebeek timtebeek merged commit 0d8d873 into openrewrite:main Nov 29, 2024
2 checks passed
@punkratz312
Copy link
Contributor Author

wow so quick 🥇 well done 🍀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants