DBZ-759 Fix hashCode of BinaryValue

According to ErrorProne, the hashCode of a byte array returns useless
information.

Part of https://issues.jboss.org/browse/DBZ-759
This commit is contained in:
Andreas Bergmeier 2018-06-21 16:06:34 +02:00 committed by Gunnar Morling
parent d543439799
commit 333d6cb57d

View File

@ -8,6 +8,8 @@
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Arrays;
import io.debezium.annotation.Immutable;
/**
@ -27,7 +29,7 @@ final class BinaryValue implements Value {
@Override
public int hashCode() {
return value.hashCode();
return Arrays.hashCode(this.value);
}
@Override