Skip to content

Commit 63b5b0d

Browse files
committed
VariationTree::fromFile(Path)
1 parent d1bf2d7 commit 63b5b0d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/org/variantsync/diffdetective/variation/tree/VariationTree.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ public VariationTree(VariationTreeNode<L> root, VariationTreeSource source) {
5454
Assert.assertTrue(root.isRoot());
5555
}
5656

57+
/**
58+
* Same as {@link #fromFile(Path, VariationDiffParseOptions)}
59+
* but with {@link VariationDiffParseOptions#Default} parse options.
60+
*/
61+
public static VariationTree<DiffLinesLabel> fromFile(final Path path) throws IOException, DiffParseException {
62+
return fromFile(path, VariationDiffParseOptions.Default);
63+
}
64+
5765
/**
5866
* Same as {@link #fromFile(BufferedReader, VariationTreeSource, VariationDiffParseOptions)}
5967
* but registers {@code path} as source.

0 commit comments

Comments
 (0)