dropbox / dropbox-sdk-java

A Java library for the Dropbox Core API.
https://www.dropbox.com/developers/documentation/java
MIT License
593 stars 447 forks source link

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

Closed wdziemia closed 5 months ago

wdziemia commented 5 months ago

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

https://github.com/dropbox/dropbox-sdk-java/pull/534/commits/cbe926614fee910c4c360eda68174260ccf0a1fe

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