Skip to content

Commit

Permalink
fix wrong if
Browse files Browse the repository at this point in the history
  • Loading branch information
amorynan committed Nov 29, 2023
1 parent 61c7973 commit f7ef4a7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,19 +142,13 @@ public int hashCode() {

@Override
public boolean equals(Object o) {
if (o == null) {
return false;
}
if (!(o instanceof ArrayLiteral)) {
return false;
}
if (this == o) {
return true;
}
ArrayLiteral that = (ArrayLiteral) o;
if (that.children.size() != children.size()) {
return false;
}
return Objects.equals(children, that.children);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,6 @@ public int hashCode() {

@Override
public boolean equals(Object o) {
if (o == null) {
return false;
}
if (!(o instanceof MapLiteral)) {
return false;
}
Expand All @@ -238,9 +235,6 @@ public boolean equals(Object o) {
}

MapLiteral that = (MapLiteral) o;
if (that.children.size() != children.size()) {
return false;
}
return Objects.equals(children, that.children);
}
}

0 comments on commit f7ef4a7

Please sign in to comment.