@Test void null_equivalence() throws Exception { assertThat(SyntacticEquivalence.areEquivalent((Tree) null, null)).isTrue(); assertThat(SyntacticEquivalence.areEquivalent(null, compilationUnitTree("class A{}"))).isFalse(); assertThat(SyntacticEquivalence.areEquivalent(compilationUnitTree("class A{}"), null)).isFalse(); }
public static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList) { return areEquivalent(leftList, rightList, (t1, t2) -> false); }
SyntacticEquivalence { public static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList) { return areEquivalent(leftList, rightList, (t1, t2) -> false); } }
SyntacticEquivalence { public static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList) { return areEquivalent(leftList, rightList, (t1, t2) -> false); } private  SyntacticEquivalence(); }
SyntacticEquivalence { public static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList) { return areEquivalent(leftList, rightList, (t1, t2) -> false); } private  SyntacticEquivalence(); static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList); static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList, BiPredicate<JavaTree, JavaTree> permissiveEquivalence); static boolean areEquivalent(@Nullable Tree leftNode, @Nullable Tree rightNode); }
SyntacticEquivalence { public static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList) { return areEquivalent(leftList, rightList, (t1, t2) -> false); } private  SyntacticEquivalence(); static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList); static boolean areEquivalent(List<? extends Tree> leftList, List<? extends Tree> rightList, BiPredicate<JavaTree, JavaTree> permissiveEquivalence); static boolean areEquivalent(@Nullable Tree leftNode, @Nullable Tree rightNode);  }