Skip to content

Commit be3616b

Browse files
committed
fix custom eq
1 parent 0c8e34c commit be3616b

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

lib/src/main/java/io/cloudquery/scalar/Binary.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,10 @@ public void setValue(Object value) throws ValidationException {
4949

5050
@Override
5151
public boolean equals(Object other) {
52-
if (!(other instanceof Binary o)) {
53-
return false;
52+
if (other instanceof Binary o) {
53+
return Arrays.equals(this.value, o.value);
5454
}
55-
56-
if (!o.getClass().equals(this.getClass())) {
57-
return false;
58-
}
59-
60-
if (this.value == null) {
61-
return o.value == null;
62-
}
63-
64-
return Arrays.equals(this.value, o.value);
55+
return false;
6556
}
6657

6758
public static class LargeBinary extends Binary {

0 commit comments

Comments
 (0)