blob: b81061dd5af25df6f01469d30b06473c144d90fd [file] [log] [blame]
import java.util.*;
class Foo {
public void foo(Bar bar) {
for (Iterator it = bar.getCns().iterator(); it.hasNext();) {
final String o = (String) it.next();
}
}
}
class Bar<CN extends Bar> {
private List<CN> cns;
public List<CN> getCns() {
if (cns == null) {
return Collections.emptyList();
}
return cns;
}
}