Skip to content

Commit

Permalink
#630 Make test java 17 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
svennissel committed May 9, 2022
1 parent 859d66e commit 5911539
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void testAddClassesLeafs() throws Exception {
filter.addClassesLeafs(classesSet, root, clazzNodeMap);

//then
final List<DefaultMutableTreeNode> level1Nodes = Collections.list(root.children());
final List<DefaultMutableTreeNode> level1Nodes = Collections.list(root.children()).stream().map(t -> (DefaultMutableTreeNode)t).collect(Collectors.toList());
assertEquals(level1Nodes.size(),4);
final List<ClassLikeFilter.Clazz> clazzesLevel1 = level1Nodes.stream()
.map(n -> (ClassLikeFilter.Clazz) n.getUserObject())
Expand Down

0 comments on commit 5911539

Please sign in to comment.