mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
20 lines
395 B
Plaintext
20 lines
395 B
Plaintext
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;
|
|
}
|
|
} |