@@ -23,7 +23,7 @@ public class VariationUnparser {
2323 * @return the unparsed variation tree
2424 * @param <L> the type of labels of the tree
2525 */
26- public static <L extends Label > String variationTreeUnparser (VariationTree <L > tree , Function <List <String >, L > linesToLabel ) {
26+ public static <L extends Label > String unparseTree (VariationTree <L > tree , Function <List <String >, L > linesToLabel ) {
2727 if (!tree .root ().getChildren ().isEmpty ()) {
2828 StringBuilder result = new StringBuilder ();
2929 Stack <VariationTreeNode <L >> stack = new Stack <>();
@@ -57,8 +57,8 @@ public static <L extends Label> String variationTreeUnparser(VariationTree<L> tr
5757 * @param linesToLabel a function that converts lists of lines into labels
5858 * @return the unparsed variation tree
5959 */
60- public static String variationTreeUnparser (VariationTree <DiffLinesLabel > tree ) {
61- return variationTreeUnparser (tree , DiffLinesLabel ::withInvalidLineNumbers );
60+ public static String unparseTree (VariationTree <DiffLinesLabel > tree ) {
61+ return unparseTree (tree , DiffLinesLabel ::withInvalidLineNumbers );
6262 }
6363
6464 /**
@@ -70,9 +70,9 @@ public static String variationTreeUnparser(VariationTree<DiffLinesLabel> tree) {
7070 * @param <L> the type of labels of the tree
7171 * @throws IOException
7272 */
73- public static <L extends Label > String variationDiffUnparser (VariationDiff <L > diff , Function <List <String >, L > linesToLabel ) throws IOException {
74- String tree1 = variationTreeUnparser (diff .project (Time .BEFORE ), linesToLabel );
75- String tree2 = variationTreeUnparser (diff .project (Time .AFTER ), linesToLabel );
73+ public static <L extends Label > String unparseDiff (VariationDiff <L > diff , Function <List <String >, L > linesToLabel ) throws IOException {
74+ String tree1 = unparseTree (diff .project (Time .BEFORE ), linesToLabel );
75+ String tree2 = unparseTree (diff .project (Time .AFTER ), linesToLabel );
7676 return JGitDiff .textDiff (tree1 , tree2 , SupportedAlgorithm .MYERS );
7777 }
7878
@@ -83,8 +83,8 @@ public static <L extends Label> String variationDiffUnparser(VariationDiff<L> di
8383 * @return the unparsed variation diff
8484 * @throws IOException
8585 */
86- public static String variationDiffUnparser (VariationDiff <DiffLinesLabel > diff ) throws IOException {
87- return variationDiffUnparser (diff , DiffLinesLabel ::withInvalidLineNumbers );
86+ public static String unparseDiff (VariationDiff <DiffLinesLabel > diff ) throws IOException {
87+ return unparseDiff (diff , DiffLinesLabel ::withInvalidLineNumbers );
8888 }
8989
9090 /**
0 commit comments