import java.util.*; public class Test { List> getList () { return new ArrayList> (); } public void test2 (Test arg) { result = arg.getList (); } }