You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by jo...@apache.org on 2023/10/18 17:29:08 UTC
[kafka] branch KAFKA-15626 updated: hash code
This is an automated email from the ASF dual-hosted git repository.
jolshan pushed a commit to branch KAFKA-15626
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/KAFKA-15626 by this push:
new 3d20840b159 hash code
3d20840b159 is described below
commit 3d20840b159ebdd068c12514cde8026d0c07184b
Author: Justine <jo...@confluent.io>
AuthorDate: Wed Oct 18 10:28:52 2023 -0700
hash code
---
.../java/org/apache/kafka/storage/internals/log/VerificationGuard.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/storage/src/main/java/org/apache/kafka/storage/internals/log/VerificationGuard.java b/storage/src/main/java/org/apache/kafka/storage/internals/log/VerificationGuard.java
index 0235769ee1a..c815eb66131 100644
--- a/storage/src/main/java/org/apache/kafka/storage/internals/log/VerificationGuard.java
+++ b/storage/src/main/java/org/apache/kafka/storage/internals/log/VerificationGuard.java
@@ -49,8 +49,7 @@ public class VerificationGuard {
@Override
public int hashCode() {
- long value = verificationGuardValue;
- return (int) (value ^ (value >>> 32));
+ return Long.hashCode(verificationGuardValue);
}
private long verificationGuardValue() {