mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
moving tests
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import java.util.*;
|
||||
|
||||
class Foo {
|
||||
public void foo(Bar bar) {
|
||||
for (Iterator it = bar.iterator(); it.hasNext();) {
|
||||
final String o = (String) it.next();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Bar<CN extends Bar> {
|
||||
private List<CN> cns;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public Iterator<CN> <caret>iterator() {
|
||||
return getCns().iterator();
|
||||
}
|
||||
|
||||
public List<CN> getCns() {
|
||||
if (cns == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return cns;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user