mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8337716: ByteBuffer hashCode implementations are inconsistent
Reviewed-by: alanb, liach
This commit is contained in:
parent
367e0a6556
commit
8bd3cd5156
3 changed files with 24 additions and 14 deletions
|
@ -29,7 +29,6 @@ package java.nio;
|
|||
|
||||
import java.lang.foreign.MemorySegment;
|
||||
import java.util.Objects;
|
||||
import jdk.internal.util.ArraysSupport;
|
||||
|
||||
/**
|
||||
#if[rw]
|
||||
|
@ -706,9 +705,6 @@ class Heap$Type$Buffer$RW$
|
|||
addr, segment)));
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return ArraysSupport.hashCode(hb, ix(position()), remaining(), 1);
|
||||
}
|
||||
|
||||
#end[byte]
|
||||
|
||||
|
@ -737,9 +733,6 @@ class Heap$Type$Buffer$RW$
|
|||
offset, segment);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return ArraysSupport.hashCode(hb, ix(position()), remaining(), 1);
|
||||
}
|
||||
#end[char]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue