blob: 09d4024b41a2a252506ce6c77e8c3c85907f1888 [file] [log] [blame]
class Node {
abstract java.util.List<Node> getChildrenNodes();
}
class Foo {
public Object bar() {
Node node;
java.util.List<Node> children = new java.util.LinkedList<Node>();
return children.addAll(node.getChildrenNodes());
}
}