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

use "boxed type".hashCode(value) instead of "boxed type".valueOf(value).hashCode() #130

Open
xuwei-k opened this issue Jan 23, 2019 · 1 comment
Labels

Comments

@xuwei-k
Copy link
Member

xuwei-k commented Jan 23, 2019

I think we can/should use these methods if contraband does not support JDK 7.

https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html#hashCode-int-

hashCode
public static int hashCode(int value)
Returns a hash code for a int value; compatible with Integer.hashCode().
Parameters:
value - the value to hash
Returns:
a hash code value for a int value.
Since:
1.8

@eed3si9n
Copy link
Member

Sounds good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants