Committed by
Gerrit Code Review
Use Long.hashCode(long) to avoid manual hash code calculation
Change-Id: I5f4aa8b80339a0c671ff2d12f8ba25dba023f220
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -44,7 +44,7 @@ public class IndexedLambda implements Lambda { | ... | @@ -44,7 +44,7 @@ public class IndexedLambda implements Lambda { |
| 44 | 44 | ||
| 45 | @Override | 45 | @Override |
| 46 | public int hashCode() { | 46 | public int hashCode() { |
| 47 | - return (int) (index ^ (index >>> 32)); | 47 | + return Long.hashCode(index); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | @Override | 50 | @Override | ... | ... |
-
Please register or login to post a comment