aboutsummaryrefslogtreecommitdiffstats
path: root/javaparser-symbol-solver-testing/src/test/resources/GenericCollectionWithExtension.java.txt
blob: 22261ca432a9a18e4f0277aa9d54ef1180eebdfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Node {
}

class Comment extends Node {
}

class Foo {

    public <T> void foo(java.util.List<T> t1, java.util.List<T> t2) {
    }

    public Object bar() {
        Node node;
        java.util.List<Node> children = new java.util.LinkedList<Node>();
        java.util.List<Comment> commentsToAttribute;

        foo(children, commentsToAttribute);

        return children.addAll(commentsToAttribute);
    }
}