8274686: java.util.UUID#hashCode() should use Long.hashCode()
Reviewed-by: rriggs
This commit is contained in:
parent
0c2d00bff7
commit
cc2cac130c
@ -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…
x
Reference in New Issue
Block a user