File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/edu/hm/hafner/coverage Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,7 @@ private String createTargetClassName(final ClassNode testClassNode) {
694
694
*
695
695
* @return a new tree with the merged {@link Node nodes}
696
696
*/
697
- public static Node merge (final List <Node > nodes ) {
697
+ public static Node merge (final List <? extends Node > nodes ) {
698
698
if (nodes .isEmpty ()) {
699
699
throw new IllegalArgumentException ("Cannot merge an empty list of nodes" );
700
700
}
@@ -707,6 +707,7 @@ public static Node merge(final List<Node> nodes) {
707
707
708
708
if (grouped .size () == 1 ) {
709
709
return nodes .stream ()
710
+ .map (Node .class ::cast )
710
711
.reduce (Node ::merge )
711
712
.orElseThrow (() -> new NoSuchElementException ("No node found" ));
712
713
}
You can’t perform that action at this time.
0 commit comments