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:
parent
d543439799
commit
333d6cb57d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user