Skip to content

Commit

Permalink
Deep compare also compares properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kniazkov committed Jun 27, 2024
1 parent 60b6c02 commit 25301f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/cqfn/astranaut/core/base/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ default boolean deepCompare(Node other) {
final int count = this.getChildCount();
equals = count == other.getChildCount()
&& this.getTypeName().equals(other.getTypeName())
&& this.getData().equals(other.getData());
&& this.getData().equals(other.getData())
&& this.getProperties().equals(other.getProperties());
for (int index = 0; equals && index < count; index = index + 1) {
equals = this.getChild(index).deepCompare(other.getChild(index));
}
Expand Down

0 comments on commit 25301f0

Please sign in to comment.