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

Modified the RemovedSubjectMethods recipe #545

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

BhavanaPidapa
Copy link
Contributor

What's changed?

The recipe should change doAs() method with callAs() method. The existing recipe was replacing the wrong Value. Now, updated the recipe with correct values.

What's your motivation?

I used org.openrewrite.java.ChangeMethodName for the recipe RemovedSubjectMethods.

Anyone you would like to review specifically?

@timtebeek @cjobinabo

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

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/java/migrate/lang/UseTextBlocks.java
    • lines 37-37

@timtebeek
Copy link
Contributor

timtebeek commented Sep 7, 2024

This makes sense looking at https://docs.oracle.com/en/java/javase/21/docs/api/java.base/javax/security/auth/Subject.html
Thanks for the quick fix!

@timtebeek timtebeek merged commit 72e939d into openrewrite:main Sep 7, 2024
2 checks passed
@timtebeek timtebeek added the bug Something isn't working label Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants