Skip to content

Commit

Permalink
fix custom eq
Browse files Browse the repository at this point in the history
  • Loading branch information
candiduslynx committed Aug 17, 2023
1 parent 0c8e34c commit be3616b
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions lib/src/main/java/io/cloudquery/scalar/Binary.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,10 @@ public void setValue(Object value) throws ValidationException {

@Override
public boolean equals(Object other) {
if (!(other instanceof Binary o)) {
return false;
if (other instanceof Binary o) {
return Arrays.equals(this.value, o.value);
}

if (!o.getClass().equals(this.getClass())) {
return false;
}

if (this.value == null) {
return o.value == null;
}

return Arrays.equals(this.value, o.value);
return false;
}

public static class LargeBinary extends Binary {
Expand Down

0 comments on commit be3616b

Please sign in to comment.