Skip to content

Commit

Permalink
[multistage] Handle Integer.MIN_VALUE in hashCode based FieldSelectio…
Browse files Browse the repository at this point in the history
…nKeySelector (#10596)
  • Loading branch information
ankitsultana authored Apr 13, 2023
1 parent 7c1d10a commit 0cb456a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public int computeHash(Object[] input) {
}

// return a positive number because this is used directly to modulo-index
return Math.abs(hashCode);
return hashCode & Integer.MAX_VALUE;
}

@Override
Expand Down

0 comments on commit 0cb456a

Please sign in to comment.