mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8274686: java.util.UUID#hashCode() should use Long.hashCode()
Reviewed-by: rriggs
This commit is contained in:
parent
0c2d00bff7
commit
cc2cac130c
1 changed files with 1 additions and 2 deletions
|
@ -468,8 +468,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
long hilo = mostSigBits ^ leastSigBits;
|
return Long.hashCode(mostSigBits ^ leastSigBits);
|
||||||
return ((int)(hilo >> 32)) ^ (int) hilo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue