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

AutoValue hashCode implementation changes subtly in 1.5 #3

Open
kevinmost opened this issue Aug 25, 2017 · 0 comments
Open

AutoValue hashCode implementation changes subtly in 1.5 #3

kevinmost opened this issue Aug 25, 2017 · 0 comments

Comments

@kevinmost
Copy link
Owner

https://github.com/google/auto/releases/tag/auto-value-1.5

The generated hashCode() method uses h = (int) (h ^ longProperty) rather than h ^= longProperty to avoid warnings about loss of precision.

This shouldn't affect anything but it's good to stay in sync with the latest AutoValue hashCode implementation

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

No branches or pull requests

1 participant