repo.or.cz
/
fedora-idea.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
find type parameters for class
[fedora-idea.git]
/
java
/
java-tests
/
testData
/
refactoring
/
inlineMethod
/
IDEADEV5806.java.after
blob
b81061dd5af25df6f01469d30b06473c144d90fd
1
import java.util.*;
2
3
class Foo {
4
public void foo(Bar bar) {
5
for (Iterator it = bar.getCns().iterator(); it.hasNext();) {
6
final String o = (String) it.next();
7
}
8
}
9
}
10
11
class Bar<CN extends Bar> {
12
private List<CN> cns;
13
14
public List<CN> getCns() {
15
if (cns == null) {
16
return Collections.emptyList();
17
}
18
return cns;
19
}
20
}