Class SemanticallyEqual

java.lang.Object
org.openrewrite.java.search.SemanticallyEqual

@Incubating(since="7.24.0") public class SemanticallyEqual extends Object
Recursively checks the equality of each element of two ASTs to determine if two trees are semantically equal.

Bug fixes related to semantic equality should be applied to `CombineSemanticallyEqualCatchBlocks$CommentVisitor` too.

  • Constructor Details

    • SemanticallyEqual

      protected SemanticallyEqual()
  • Method Details

    • areEqual

      public static boolean areEqual(org.openrewrite.java.tree.J firstElem, org.openrewrite.java.tree.J secondElem)