diff --git a/agrona/src/main/java/org/agrona/collections/Int2ObjectHashMap.java b/agrona/src/main/java/org/agrona/collections/Int2ObjectHashMap.java
index <HASH>..<HASH> 100644
--- a/agrona/src/main/java/org/agrona/collections/Int2ObjectHashMap.java
+++ b/agrona/src/main/java/org/agrona/collections/Int2ObjectHashMap.java
@@ -471,7 +471,7 @@ public class Int2ObjectHashMap<V>
      */
     @DoNotSub public int hashCode()
     {
-        @DoNotSub int result = size;
+        @DoNotSub int result = 0;
 
         for (@DoNotSub int i = 0, length = values.length; i < length; i++)
         {
[Java] Honor the Java Map hashCode contract for Int2ObjectHashMap take 2.