Skip to content

Commit 3d8f9cf

Browse files
committed
fix: remember label type in TreeView::tree(t, r)
1 parent e855e58 commit 3d8f9cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/org/variantsync/diffdetective/variation/tree/view

src/main/java/org/variantsync/diffdetective/variation/tree/view/TreeView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public static <L extends Label> void treeInline(final VariationTree<L> t, final
6868
* tree whether it should be contained in the view or should be excluded.
6969
* @return A variation tree that represents a view on the given variation tree t.
7070
*/
71-
public static VariationTree<?> tree(final VariationTree<?> t, final Relevance r) {
72-
final VariationTree<?> copy = t.deepCopy();
71+
public static <L extends Label> VariationTree<L> tree(final VariationTree<L> t, final Relevance r) {
72+
final VariationTree<L> copy = t.deepCopy();
7373
treeInline(copy, r);
7474
return copy;
7575
}

0 commit comments

Comments
 (0)