mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
||||
public int hashCode() {
|
||||
long hilo = mostSigBits ^ leastSigBits;
|
||||
return ((int)(hilo >> 32)) ^ (int) hilo;
|
||||
return Long.hashCode(mostSigBits ^ leastSigBits);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue