@@ -466,10 +466,10 @@ public String toString() {
466466 * Create a {@link DiffTree} by matching nodes between {@code before} and {@code after} with the
467467 * default GumTree matcher.
468468 *
469- * @see compareUsingMatching (VariationNode, VariationNode, Matcher)
469+ * @see diffUsingMatching (VariationNode, VariationNode, Matcher)
470470 */
471- public static DiffTree compareUsingMatching (VariationTree before , VariationTree after ) {
472- DiffNode root = compareUsingMatching (
471+ public static DiffTree diffUsingMatching (VariationTree before , VariationTree after ) {
472+ DiffNode root = diffUsingMatching (
473473 before .root (),
474474 after .root (),
475475 Matchers .getInstance ().getMatcher ()
@@ -481,19 +481,19 @@ public static DiffTree compareUsingMatching(VariationTree before, VariationTree
481481 /**
482482 * Create a {@link DiffNode} by matching nodes between {@code before} and {@code after} with
483483 * {@code matcher}. The arguments of this function aren't modified (note the
484- * {@link compareUsingMatching (DiffNode, VariationNode, Matcher) overload} which modifies
484+ * {@link diffUsingMatching (DiffNode, VariationNode, Matcher) overload} which modifies
485485 * {@code before} in-place.
486486 *
487487 * @param before the variation tree before an edit
488488 * @param after the variation tree after an edit
489- * @see compareUsingMatching (DiffNode, VariationNode, Matcher)
489+ * @see diffUsingMatching (DiffNode, VariationNode, Matcher)
490490 */
491- public static <A extends VariationNode <A >, B extends VariationNode <B >> DiffNode compareUsingMatching (
491+ public static <A extends VariationNode <A >, B extends VariationNode <B >> DiffNode diffUsingMatching (
492492 VariationNode <A > before ,
493493 VariationNode <B > after ,
494494 Matcher matcher
495495 ) {
496- return compareUsingMatching (DiffNode .unchanged (before ), after , matcher );
496+ return diffUsingMatching (DiffNode .unchanged (before ), after , matcher );
497497 }
498498
499499 /**
@@ -510,7 +510,7 @@ public static <A extends VariationNode<A>, B extends VariationNode<B>> DiffNode
510510 * @param after the variation tree after an edit
511511 * @see "Constructing Variation Diffs Using Tree Diffing Algorithms"
512512 */
513- public static <B extends VariationNode <B >> DiffNode compareUsingMatching (
513+ public static <B extends VariationNode <B >> DiffNode diffUsingMatching (
514514 DiffNode before ,
515515 VariationNode <B > after ,
516516 Matcher matcher
@@ -612,7 +612,7 @@ public void improveMatching(Matcher matcher) {
612612 * Run {@code matcher} on the matching extracted from {@code tree} and modify {@code tree}
613613 * in-place to reflect the new matching.
614614 *
615- * This is equivalent to {@code compareUsingMatching } except that the existing implicit matching
615+ * This is equivalent to {@code diffUsingMatching } except that the existing implicit matching
616616 * is {@link extractMatching extracted} and used as basis for the new matching. Hence, this
617617 * method is mostly an optimisation to avoid a copy of the {@code AFTER} projection of {@code
618618 * tree}.
0 commit comments