Skip to content

Commit

Permalink
Add elseBlock to equals und hashCode
Browse files Browse the repository at this point in the history
  • Loading branch information
lshala committed Sep 23, 2024
1 parent 7e1adc9 commit 7c64837
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ class TryStatement : Statement() {
tryBlock == other.tryBlock &&
finallyBlock == other.finallyBlock &&
catchClauses == other.catchClauses &&
elseBlock == other.elseBlock &&
propertyEqualsList(catchClauseEdges, other.catchClauseEdges))
}

override fun hashCode() =
Objects.hash(super.hashCode(), resources, tryBlock, finallyBlock, catchClauses)
Objects.hash(super.hashCode(), resources, tryBlock, finallyBlock, catchClauses, elseBlock)
}

0 comments on commit 7c64837

Please sign in to comment.