Debian Codegraph @

javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt

raw
1 class Node {
2 }
3
4 class Comment extends Node {
5 }
6
7 class Foo {
8
9 public <T> void foo(java.util.List<T> t1, java.util.List<T> t2) {
10 }
11
12 public Object bar() {
13 Node node;
14 java.util.List<Node> children = new java.util.LinkedList<Node>();
15 java.util.List<Comment> commentsToAttribute;
16
17 foo(children, commentsToAttribute);
18
19 return children.addAll(commentsToAttribute);
20 }
21 }