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

MF-5246 Prefix variables with "this." in hashcode function to prevent name clashes with "hash" #534

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

wdziemia
Copy link
Contributor

@wdziemia wdziemia commented Apr 3, 2024

Use a mapping function to prefix all fields with "this." before outputting them to the hashcode function.

cbe9266

This is to prevent a naming crash when "hash" is a member of the class and the use of "hash" in the generated hashCode function

@wdziemia wdziemia merged commit 0f765cb into main Apr 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants