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 NPE for records #637

Merged
merged 1 commit into from
Dec 19, 2024
Merged

fix NPE for records #637

merged 1 commit into from
Dec 19, 2024

Conversation

amishra-u
Copy link
Contributor

@amishra-u amishra-u commented Dec 19, 2024

What's changed?

With Java Records, class variables are defined as constructor parameters, that was previously unhandled.

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

@timtebeek
Copy link
Contributor

Thanks for the quick fix here @amishra-u !

@timtebeek timtebeek merged commit 9a50b85 into openrewrite:main Dec 19, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Joda Recipe NullpointerException when visting Java Records
2 participants