Description
The following code snippet shows that IdentityHashStore assumes the hashCode is always non-negative.
private void putInternal(Object k, Object v) { int hash = System.identityHashCode(k); final int numEntries = buffer.length / 2; int index = hash % numEntries; ... } private int getElementIndex(K k) { ... final int numEntries = buffer.length / 2; int hash = System.identityHashCode(k); int index = hash % numEntries; int firstIndex = index; ... }