From 7c64837cd92cf7f2483afb60300bdb6ba3b628eb Mon Sep 17 00:00:00 2001 From: Leutrim Shala Date: Mon, 23 Sep 2024 14:23:32 +0200 Subject: [PATCH] Add elseBlock to equals und hashCode --- .../de/fraunhofer/aisec/cpg/graph/statements/TryStatement.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/statements/TryStatement.kt b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/statements/TryStatement.kt index c2da4a844f..1f887fa207 100644 --- a/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/statements/TryStatement.kt +++ b/cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/statements/TryStatement.kt @@ -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) }