Skip to content

Commit c325359

Browse files
committed
VariationTree::setSource
1 parent 7b9be89 commit c325359

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*/
4242
public class VariationTree<L extends Label> implements Source {
4343
private final VariationTreeNode<L> root;
44-
private final Source source;
44+
private Source source;
4545

4646
/** Creates a {@code VariationTree} with the given root and an {@link Source#Unknown unknown} source. */
4747
public VariationTree(VariationTreeNode<L> root) {
@@ -237,6 +237,14 @@ public VariationTreeNode<L> root() {
237237
return root;
238238
}
239239

240+
/**
241+
* Sets the source of this VariationTree.
242+
* @see Source
243+
*/
244+
public void setSource(final Source source) {
245+
this.source = source;
246+
}
247+
240248
/**
241249
* Returns the source of this VariationTree (i.e., the data this VariationTree was created from).
242250
* @see Source

0 commit comments

Comments
 (0)