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

Fix overly cautious regexp for = UseStringReplace #332

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

blipper
Copy link
Contributor

@blipper blipper commented Aug 20, 2024

What's your motivation?

Make less cautious!

@timtebeek timtebeek added the enhancement New feature or request label Aug 21, 2024
@timtebeek
Copy link
Contributor

Thanks for adding this @blipper ! I've pushed a small fix to your test: it was missing the rewriteRun method invocation, so nothing was tested. I've also added two more Java SourceSpecs to check handling of the special cases outlined in #330. With that I think we're good to merge. :)

@timtebeek
Copy link
Contributor

Remaining test failure caused by

Will pick that up separately; thanks again!

@timtebeek timtebeek merged commit 5aaf59f into openrewrite:main Aug 21, 2024
1 of 2 checks passed
@timtebeek
Copy link
Contributor

This was just released into https://github.com/openrewrite/rewrite-static-analysis/releases/tag/v1.15.0 ; thanks again!

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.

UseStringReplace is overly cautious around the use of =
2 participants